在main函数加入下面代码:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
组件不能使static类型,否则不能应用风格~
在main函数加入下面代码:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
组件不能使static类型,否则不能应用风格~
转载于:https://my.oschina.net/skyhacker2/blog/73209