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.

Caution

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 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.