Search code examples
java-7look-and-feeluimanagersynthetica

Use SyntheticaBlackEye with java 7


I want to use the look and feel named SyntheticaBlackEye with my java application, so I downloaded the jar files of the look and feel from here then I put the jar file inside the library folder of my project then I set the look and feel like as follows:

UIManager.setLookAndFeel(new SyntheticaBlackEyeLookAndFeel());

And I added that import:

import de.javasoft.plaf.synthetica.SyntheticaBlackEyeLookAndFeel;

The problem is that the compiler refused and told me that no suitable method found for setLookAndFeel(de.javasoft.plaf.synthetica.SyntheticaBlackEyeLookAndFeel)

What's the problem here?


Solution

  • Use this line:

    UIManager.setLookAndFeel("de.javasoft.plaf.synthetica.SyntheticaBlackEyeLookAndFeel");
    

    instead of:

    setLookAndFeel(de.javasoft.plaf.synthetica.SyntheticaBlackEyeLookAndFeel);
    

    inside try catch block.