The JavaTM Tutorial

| Start of Tutorial > Start of Trail | Search Examples Index

Trail: Creating a GUI with JFC/Swing

## Lesson: Converting to Swing

> 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 as `handleEvent` and `action` -- 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.

### Why to Convert

> 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.

### How to Convert

> 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.

### Conversion Resources

> This section provides several resources to help you with your conversion, including examples.

### Solving Common Conversion Problems

> Like the name says, this section lists some common gotchas, along with their solutions.

| Start of Tutorial > Start of Trail | Search Examples Index