1
我正在使用Netbeans作爲IDE。我想用SyntheticaOrangeMetallicLookAndFeel
。我將jar文件添加到庫中。以下代碼段位於構造函數內的initcomponents()
行之前。在java中設置合成外觀感覺
try{
UIManager.setLookAndFeel(new SyntheticaOrangeMetallicLookAndFeel());
}catch(Exception e){}
我得到這個錯誤而執行:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthUI.
幫我解決這個問題。謝謝。
你是對的。我剛剛添加了最新的Synthetica.jar,並且工作正常 – chathura