|
|
|
|||
|
Converting to SwingThis lesson tells you how to convert your AWT-based programs to use the Swing components. If a program was written for JDK 1.0 -- meaning that instead of using the event listening system introduced in JDK 1.1, it uses methods such ashandleEvent
and action --
you should convert the program to the newer event system first.
Refer to
Migrating to 1.1Why to ConvertSwing components provide many benefits to programmers and end users. For a list of Swing features, see Swing Features and Concepts How to ConvertThis section outlines a procedure for converting your programs to Swing. The good news is that converting 1.1 AWT-based programs to Swing can be pretty straightforward. The bad news is that we don't know of any automatic tools for doing so. If you find one, please send us mail and let us know. Conversion ResourcesThis section provides several resources to help you with your conversion, including examples. Solving Common Conversion ProblemsLike the name says, this section lists some common gotchas, along with their solutions. | |||
|