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 ...
Get Platinum Edition Using XHTML™, XML, and 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.