Chapter 17, “Developing User Interfaces with Swing”

Swing is one of the key APIs of the Java Foundations Classes (JFC).

The JComponent class of javax.swing is the top-level class of the Swing component hierarchy.

The JComponent class is a subclass of the java.awt.Container class; therefore, it is both a component and a container in the AWT sense. Because JComponent is the superclass of all Swing components, all Swing components descend from java.awt.Container and java.awt.Component.

Most of the Swing components are contained in the javax.swing package, which also provides classes and interfaces that support and manage the GUI components.

The javax.swing.event package defines the events and event listeners that the Swing components use.

The

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.