我使用 Netbeans 作为 IDE。我想用SyntheticaOrangeMetallicLookAndFeel
. 我将 jar 文件添加到库中。以下代码段位于initcomponents()
构造函数内的行之前。
try{
UIManager.setLookAndFeel(new SyntheticaOrangeMetallicLookAndFeel());
}catch(Exception e){}
执行时出现此错误:
线程“AWT-EventQueue-0”中的异常 java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthUI。
帮我解决这个问题。谢谢。