Day 8. Working with Swing

During the next four days, you will work with a set of classes called Swing that can implement a user-interface style called Metal. (Sounds like somebody at Sun Microsystems is either a music buff or a frustrated musician.)

Swing, which is part of the Java Foundation Classes library, provides a way to offer a graphical user interface in your Java programs and take user input with the keyboard, mouse, and other input devices.

The Swing library is an extension of the Abstract Windowing Toolkit, the package that offered limited graphical programming support in Java 1.0. Swing offers much-improved functionality over its predecessor—new components, expanded component features, better event handling, and a selectable look ...

Get Sams Teach Yourself Java 2 in 21 Days, Second Edition 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.