问题描述
我需要在JDK 1.6中设置LookAndFeel文件。
我有两个文件:
-
napkinlaf-swingset2.jar
-
napkinlaf.jar
如何设置并使用它?
我想要一个GTK的外观和感觉,或Qt的外观和感觉,它们是否可用?
Naplin的类名是 net.sourceforge.napkinlaf.NapkinLookAndFeel
。因此,要在命令行中将其设置为默认值,请使用:
java -Dswing.defaultlaf = net.sourceforge.napkinlaf.NapkinLookAndFeel
要安装它,请将 napkinlaf.jar
添加到 lib / ext
方向和线条:
swing.installedlafs =餐巾
swing.installedlaf.napkin.name =餐巾
swing.installedlaf.napkin .class = net.sourceforge.napkinlaf.NapkinLookAndFeel
到 lib / swing.properties
安装(您可能需要创建该文件)。
请参阅
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).
See the Napkin wiki page
这篇关于我如何在Java中设置LookAndFeel文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!