简体   繁体   English

在Java中设置综合外观

[英]setting a synthetica look and feel in java

I'm using Netbeans as the IDE. 我正在使用Netbeans作为IDE。 I want to use SyntheticaOrangeMetallicLookAndFeel . 我想使用SyntheticaOrangeMetallicLookAndFeel I added the jar files to library. 我将jar文件添加到库中。 The following code segment is before the initcomponents() line inside the constructor. 以下代码段位于构造函数中的initcomponents()行之前。

   try{
     UIManager.setLookAndFeel(new SyntheticaOrangeMetallicLookAndFeel());
    }catch(Exception e){}

I'm getting this error while executing: 执行时出现此错误:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthUI. 线程“ AWT-EventQueue-0”中的异常java.lang.NoClassDefFoundError:sun / swing / plaf / synth / SynthUI。

Help me to solve this problem. 帮我解决这个问题。 Thanks. 谢谢。

You're using Java7 together with an outdated Synthetica release. 您将Java7与过时的Synthetica版本一起使用。 Use Java 6 or better a recent Synthetica release with Java 7 support. 使用Java 6或更好的具有Java 7支持的最新Synthetica版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM