private void setLookFeel() {
try {
// Set System L&F
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (Exception e) {
System.out.println("Cannot set System look and feel. Default look and feel will be used.");
}
}
转载于:https://www.cnblogs.com/NewZi/archive/2011/07/21/2112806.html