# :: Look and Theme :: ## Setting a JGoodies Look This is the preferred way, if you are allowed to import third party libraries:
       try {
          UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
       } catch (Exception e) {}
The class can be one of: `com.jgoodies.plaf.windows.ExtWindowsLookAndFeel` `com.jgoodies.plaf.plastic.PlasticLookAndFeel` `com.jgoodies.plaf.plastic.Plastic3DLookAndFeel` `com.jgoodies.plaf.plastic.PlasticXPLookAndFeel` ## Java Web Start If you use a third party l&f in a network launchable environment such as Java Web Start, you must indicate where to find the l&f classes:
       UIManager.put("ClassLoader", LookUtils.class.getClassLoader());
## Setting a JGoodies Look by Name You can set a JGoodies look using its class name:
       try {
          UIManager.setLookAndFeel("com.jgoodies.plaf.windows.ExtWindowsLookAndFeel");
       } catch (Exception e) {}
## Setting a Plastic Theme Plastic, Plastic3D and PlasticXP support color themes much like Sun's Java Look&Feel. At startup the Plastic l&fs automatically choose a default color theme that is appropriate for the current operating system. You can override this default theme via:
       PlasticLookAndFeel.setMyCurrentTheme(new DesertBlue());
       try {
          UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
       } catch (Exception e) {}
To make use of the new color theme, you must set the theme before you set the look&feel. Find color themes in package `com.jgoodies.plaf.plastic.theme`.
(c) 2004 JGoodies |  |