KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > core > gui > themes > plugin > SystemLookAndFeelPlugin


1 package org.columba.core.gui.themes.plugin;
2
3 import javax.swing.UIManager JavaDoc;
4 import javax.swing.UnsupportedLookAndFeelException JavaDoc;
5
6 public class SystemLookAndFeelPlugin extends AbstractThemePlugin {
7
8     @Override JavaDoc
9     public void setLookAndFeel() throws Exception JavaDoc {
10         try {
11             UIManager.setLookAndFeel(
12                 UIManager.getSystemLookAndFeelClassName());
13         } catch (UnsupportedLookAndFeelException JavaDoc ex) {
14           System.out.println("Unable to load native look and feel");
15         }
16     }
17
18 }
19
Popular Tags