
CHAPTER 3
Swing
Prog ramming Topics
The last chapter provided an architectural overview of AWT and Swing; it
explained how to create a graphical user interface by placing components inside
containers, arranging them with layout managers, and handling the events that
they generate. This chapter builds on that architectural foundation and introduces
many other important features of Swing. Most of the topics discussed herein are
independent of one another, so you can think of each section as a short essay on
a particular topic, where the sections can be read in any order.
This chapter introduces many of the new components and features of Swing, but it
cannot cover them in full detail. For more infor mation on the topics covered
her ein, see Java Swing,byRobert Eckstein, Marc Loy, and Dave Wood (O’Reilly).
Versions of Swing
Swing is a core part of the Java 2 platform, so many developers will simply obtain
the Swing libraries when they download the Java 2 SDK. Swing is also available as
a separate download for use as an extension to Java 1.1. When you download
Swing independently of the SDK, you must pay attention to the Swing version
number. Swing 1.0.3 is an early version of Swing that was released before Version
1.2 of Java 2. It is now outdated and is not documented in this book. Swing 1.1 is
the version of Swing that is being bundled with Java 1.2. You can download a ver-
sion of it for use with Java ...