How to install/configure custom Java Look-And-Feel?

mre picture mre · Feb 3, 2012 · Viewed 15.2k times · Source

I'm trying to install Sea Glass Look and Feel. I want to install/configure the LaF using a property file, but the tutorial that outlines this process is quite confusing.

That being said, can anyone provide a simple step-by-step guide on installing/configuring a custom LaF using a property file?

Answer

rtheunissen picture rtheunissen · Feb 3, 2012

From their website:

To use the Sea Glass Look and Feel, you must either include our Maven repository in your pom.xml file or download the jar file and include it in your class path. See the downloads page for more details.

To enable the Sea Glass Look and Feel, include the following in your application before creating any controls:

try {
    UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
} catch (Exception e) {
    e.printStackTrace();
}

We also support setting the user interface on the command line using the VM option

-Dswing.defaultlaf=com.seaglasslookandfeel.SeaGlassLookAndFeel