请问如何使用substance.jar来改变application的界面皮肤?(本人菜鸟) 请问如何使用substance.jar来改变application的界面皮肤? 指点一下啊! 最好有代码哦 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在main方法中写:try{ UIManager.setLookAndFeel("你的lookandfeel的全类名");}catch(Exception e){ e.printStackTrace();} 把substance.jar加到classpath后public static void main(String[] args) { JFrame.setDefaultLookAndFeelDecorated(true); SwingUtilities.invokeLater(new Runnable() { public void run() { try { UIManager.setLookAndFeel(new SubstanceLookAndFeel()); } catch (Exception e) { System.out.println("Substance Raven Graphite failed to initialize"); } // 以下自己的主窗口 JFrame w = new JFrame(“Demo”); w.setVisible(true); } }); } Substance look and feel - getting started 用statement查询数据库中的表,怎么老是说对象名无效呢?? 请教一个表单提交的问题 equals与==的区别是什么? 正则表达式懒惰匹配 求教sealing violation错误!! 关于程序开发时候的路径问题,个人觉得挺有挑战性。。。 如何用java模拟telnet行为 与数据库连接问题 GeneralPath默认是五角星?怎么改成三角形呢? 这种写法是否正确?JAVA语法问题! string和new string都分别适合在什么时候用 java窗口根据全局变量自动变化的问题
try{
UIManager.setLookAndFeel("你的lookandfeel的全类名");
}catch(Exception e){
e.printStackTrace();
}
JFrame.setDefaultLookAndFeelDecorated(true);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(new SubstanceLookAndFeel());
} catch (Exception e) {
System.out.println("Substance Raven Graphite failed to initialize");
} // 以下自己的主窗口
JFrame w = new JFrame(“Demo”);
w.setVisible(true);
}
});
}