Java的Swing界面,默认情况下很简陋,看上去非常难看,可以在图形窗口的main方法中,系统自动生成的注释:
/*
* Set the Nimbus look and feel
*/
下,将原有的代码注释掉,改成:
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
并用try-catch 包围,即可使用当前系统的窗口风格,看上去看多了。
/*
* Set the Nimbus look and feel
*/
下,将原有的代码注释掉,改成:
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
并用try-catch 包围,即可使用当前系统的窗口风格,看上去看多了。
转载于:https://my.oschina.net/unclegeek/blog/53684