
! 24
Chapter 8: Developing GUIs []
not part of the Java language itself, but rather classes within a package (com. sun. java. swing)
supplied by the Java Software Development Kit (SDK). The classes are as follows:
9 com. sun. java. swing, plaf. windows. WindowsLookAndFeel for Windows (32 bit only) operat-
ing systems
9
com.sun.java.swing.plaf.motif.MotifLookAndFeel for CDE/Motif look and feel on Sun
platforms
The setLookAndFeel method must be invoked within a try catch block. For example, the
following code fragment will create a Windows look and feel:
try {
UIManager. setLookAndFeel (
"com. sun. java. swing, plaf. windows. WindowsLookAndFeel") ...