O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Swing Architecture

When Java was first introduced, the only graphical user interface (GUI) available was the Abstract Windowing Toolkit (AWT). Recall from the first section of this chapter, "Interacting with People by Using Java," that AWT components are considered to be "heavyweight" in that each Java component has a peer object from the native GUI.

Sun also offers "lightweight" components that don't have a peer object. Instead, they offer "pluggable look-and-feel." If the end user is running a Windows machine but prefers the look-and-feel of Sun's Motif interface, for example, the user can select that interface in the running application. When Sun developed these lightweight components, it did so as part of a project called "Swing," so ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required