我有些困惑在哪里放置这个:
try {
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch(Exception e){
}
我没有继承JFrame
类,而是使用了JFrame f = new JFrame();
。谢谢 :D