Java Foundation Classes

Because there is a companion volume on the Java Foundation classes, Pure JFC Swing, this section presents a brief treatment of how to code a Swing application. It will also present techniques for adding accessibility and drag-and-drop features to your programs.

The most notable feature of the Java Foundation class, hereafter JFC, is Swing. Swing is a replacement GUI framework, intended to be used instead of the AWT.


Unless you are using something similar to the Java Plugin for Java 2, using Swing in applets is not practical because it requires about a 1MB download of classes.

The main difference between the AWT and Swing is that all Swing classes are lightweight components, which means they can be drawn any way ...

Get PURE Java™ 2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.