Start of Tutorial > Start of Trail |
Search
Feedback Form Examples Index |
This 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
andaction
-- you should convert the program to the newer event system first. Refer to Migrating to 1.1 for information and instructions on updating 1.0 programs.
Swing components provide many benefits to programmers and end users. For a list of Swing features, see Swing Features and Concepts. Another good resource is the How Are Swing Components Different from AWT Components? section. Unless you have a good reason not to convert, we urge you to convert to Swing components as soon as possible.
This 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 tell us. Click the Creating a GUI with JFC/Swing radio button in Step 2.
This section provides several resources to help you with your conversion, including examples.
Like the name says, this section lists some common gotchas, along with their solutions.
Start of Tutorial > Start of Trail |
Search
Feedback Form Examples Index |