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?
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
Here are the steps to install the Sea Glass L&F using the jar file (Note that i use eclipse so the instructions will be in eclipse)
Click Ok then in your code go to your public static void main(String[] args)
and copy paste this snippet:
try {
UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
} catch (Exception e) {
e.printStackTrace();
}
There you go, the L&F is now applied. If you have questions just ask it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With