记得上个学期同学和我说eclipse支持swt,说那个风格好看,由于我一直都比较喜欢netbeans所以他们都说netbeans的swing控件太丑了,以前也没怎么在意,不过这几天想了想这个风格肯定是能调整的,然后偶然之间看了一本《java模块程序设计》终于看到了改变swing控件风格的方法了。
try {
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName());
}
catch (Exception e) {
}
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName());
}
catch (Exception e) {
}
用这段代码就可以了~~~~~