10.7. Swing and AWT

In this section, we will take a cursory look at writing GUI applications. A graphical user interface is the portion of your program that a user interacts with directly. The Abstract Windowing Toolkit and Swing extension classes are what you use to create GUIs in Java.

Swing and AWT are very large topics. In fact, these two packages alone define more than half of the Java API. They can be difficult to work with, because their class hierarchies are complex. We do not have world enough and time here to cover these topics closely, as this book is more geared toward Java for the Web programmer.

We will look at these topics briefly, however, for two reasons. First, they are an important part of the Java world. Any program you write ...

Get Java™ for ColdFusion® Developers 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.