KickJava   Java API By Example, From Geeks To Geeks.

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


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 QuaquaLookAndFeelPlugin extends AbstractThemePlugin {
7
8     @Override JavaDoc
9     public void setLookAndFeel() throws Exception JavaDoc {
10         
11         // set the Quaqua Look and Feel in the UIManager
12
try {
13             UIManager
14                     .setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
15             // set UI manager properties here that affect Quaqua
16

17         } catch (Exception JavaDoc e) {
18             System.err.println("error while setting Quaqua L&F");
19             e.printStackTrace();
20         }
21     }
22
23 }
24
Popular Tags