
CHAPTER 28
Thejavax.swing.plaf Package
This package contains classes and interfaces used in the definition of a pluggable
look-and-feel (hence the acronym “plaf”). It defines abstract UI delegate classes for
Swing components. Typically, only look-and-feel developers and advanced com-
ponent developers need to use this package. Figure 28-1 shows the class hierarchy
of this package. See Chapter 3, Swing Programming Topics, for further discussion
of Swing’s pluggable look-and-feel architectur e.
The javax.swing .plaf.basic package contains classes that extend the UI delegate
classes of this package to create a basic pluggable look-and-feel UI framework.
The classes in javax.swing .plaf.metal extend the classes of javax.swing .plaf.basic to
implement the default Java look-and-feel. The classes in javax.swing .plaf.multi also
extend the abstract classes of javax.swing .plaf to produce a multiplexing look-and-
feel that combines a primary look-and-feel with one or more auxiliary look-and-
feel implementations. These various subpackages of javax.swing .plaf ar e not docu-
mented in this book because they are very infrequently used and because they are
straightforward implementations of the classes in this package that do not define
any new public APIs.
BorderUIResource Ja va 1.2
javax.swing .plaf serializable
This class implements the UIResource marker interface and serves as a wrapper around
an existing