如何改善JAVA swing GUI的外观? [英] How to improve look and feel of JAVA swing GUI?
本文介绍了如何改善JAVA swing GUI的外观?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究一个使用Java Swing的项目. Java Swing GUI的默认外观非常无聊.有什么方法可以使我拥有更好的外观和感觉?网页上的东西...
解决方案
您可以设置外观以反映平台:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
如果这对您来说还不够好,请查看用于Eclipse的SWT .>
I am working on a project that uses Java Swing. The default look and feel of the Java Swing GUI is very boring. Is there any way I can use a better look and feel? Something like on web pages...
解决方案
You can set the look and feel to reflect the platform:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
If this is not nice enough for you, take a look at SWT for Eclipse.
这篇关于如何改善JAVA swing GUI的外观?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文