I need to setup LookAndFeel Files in JDK 1.6.
I have two files:
napkinlaf-swingset2.jar
napkinlaf.jar
How can I set this up and use it?
I would like a GTK look and feel OR Qt look and feel, Are they available?
解决方案
The class name for Naplin is net.sourceforge.napkinlaf.NapkinLookAndFeel. So to set it as default on the command line, use:
java -Dswing.defaultlaf=net.sourceforge.napkinlaf.NapkinLookAndFeel
To install it add napkinlaf.jar to the lib/ext direction and the lines:
swing.installedlafs=napkin
swing.installedlaf.napkin.name=Napkin
swing.installedlaf.napkin.class=net.sourceforge.napkinlaf.NapkinLookAndFeel
to lib/swing.properties within your Java installation (you'll probably have to create the file).