# :: 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.looks.windows.WindowsLookAndFeel` `com.jgoodies.looks.plastic.PlasticLookAndFeel` `com.jgoodies.looks.plastic.Plastic3DLookAndFeel` `com.jgoodies.looks.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.looks.windows.WindowsLookAndFeel");
       } 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.setPlasticTheme(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.looks.plastic.theme`.
(c) 2011 JGoodies |  |