java 窗口如何美化 这个是我用java SWT开发工具,窗口界面用的是shell控件,可是太不好看了怎么才能将窗口美化一下做到像第二张图片这样呢,现在QQ什么的聊天工具都是这种风格,是怎么做到的? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以设置LookAndFeel,通过第三方皮肤:可选使用substance、JTattoo、liquidlnf等,我当前使用的是JTattoo的皮肤,swing/awt的默认皮肤确实是有点那个...LZ可以去G一下上述皮肤,你会发现你的界面会很NICE的.如下代码是我使用JTattoo的SmartLookAndFeel主题皮肤的方法,GoodLuck!public static void main(String[] args) { JFrame.setDefaultLookAndFeelDecorated(true); JDialog.setDefaultLookAndFeelDecorated(true); try { SmartLookAndFeel.setTheme("Green"); SmartLookAndFeel lookFeel = new SmartLookAndFeel(); javax.swing.UIManager.setLookAndFeel(lookFeel); } catch (Exception e) { e.printStackTrace(); } java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new ToolMainFrame().setVisible(true); } }); } 多谢啊朋友,试了一下界面的确nice啊! 求一算法实现的思路 没有析构函数,这个功能怎么实现? 我考,是我傻,还是java傻。 JAVA关键字 Integer类的一个小问题 ==比较 如何设置方法参数约束条件 请问:关于jfreechart中的BarChart3DDemo4.java中怎么让数值显示在柱子顶上。 高分求解:如何对ini文件进行写操作? 第一门面向对象语言是什么 有关tomcat在linux下配置的问题 【求助】将数组asList后,如何能遍历集合里的元素啊? java中怎么对文件中的数据进行修改啊???? 关于java和Access的问题
可选使用substance、JTattoo、liquidlnf等,我当前使用的是JTattoo的皮肤,swing/awt的默认皮肤确实是有点那个...LZ可以去G一下上述皮肤,你会发现你的界面会很NICE的.
如下代码是我使用JTattoo的SmartLookAndFeel主题皮肤的方法,GoodLuck!public static void main(String[] args) {
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
try {
SmartLookAndFeel.setTheme("Green");
SmartLookAndFeel lookFeel = new SmartLookAndFeel();
javax.swing.UIManager.setLookAndFeel(lookFeel); } catch (Exception e) {
e.printStackTrace();
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new ToolMainFrame().setVisible(true);
}
});
}