Swing GUI Building

Swing GUI building is similar to AWT GUI building, except that you have many more component classes with which to work. For the most part, your knowledge of the AWT carries over directly to Swing. However, Swing provides numerous enhancements that you will need to know to maximize Swing's potential. The following subsections describe the classes that are used for Swing GUI building and point out the enhancements that Swing provides.

Windows

Just as AWT provides a Window class hierarchy, so does Swing. Swing's window classes are extensions of the AWT Window class hierarchy. The JWindow class extends the AWT Window class. The JFrame class extends the AWT Frame class, and the JDialog class extends the AWT Dialog class.

The JWindow ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.