Search code examples
javanetbeanslook-and-feelsynthetica

setting a synthetica look and feel in java


I'm using Netbeans as the IDE. I want to use SyntheticaOrangeMetallicLookAndFeel. I added the jar files to library. The following code segment is before the initcomponents() line inside the constructor.

   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.

Help me to solve this problem. Thanks.


Solution

  • You're using Java7 together with an outdated Synthetica release. Use Java 6 or better a recent Synthetica release with Java 7 support.