Alternativly you can create your program normally and
start it then with
|
Source code
|
1
|
java -Dswing.systemlaf=org.jvnet.substance.skin.SubstanceMistAquaLookAndFeel -jar YourProgram.jar
|
But be sure, that you have copied before the Sunstance jar file in your JRE-ext directory.
I think its under C:\Program Files\Java\jre6\lib\ext
Otherwise Java can not find it. Then it helps also not to set it in the Classpath, because the "-D" flag have a higher priority.
Edit:
Some additional note:
That is, what I very often do, changing the LaF in this way.
For normal programs, which starts with the MetalLookAndFeel (which is the default Look And Feel) you can start it with
|
Source code
|
1
|
java -Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel -jar YourProgram.jar
|
or if you want that LookAndFeel for all that programs, you can create in
C:\Program Files\Java\jre6\lib
the file "swing.propertied" and write in there
swing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel
Additional possibilities for the file "swing.properties" you can find at
http://weblogs.java.net/blog/kirillcool/…o_use_undo.html
And if your Java program uses the System-LAF you can change it with
|
Source code
|
1
|
java -Dswing.systemlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel -jar YourProgram.jar
|
Instead the MotifLookAndFeel you can choose the NimbusLookAndFeel or any other.