Eclipse中的LookAndFeel Java Synthetica [英] LookAndFeel Java Synthetica in Eclipse
问题描述
我正在Eclipse和WindowBuilder中开发一个应用程序。
I'm developing an application in Eclipse and WindowBuilder.
我试图为GUI应用程序添加外观。
I tried to add a look and feel to GUI application.
我使用 Synthetica BlueMoon外观
。
我将Synthetica.jar添加到了class path我将这段代码添加到main:
I added the Synthetica.jar to the class path and I added this code to the main:
import de.javasoft.plaf.synthetica.SyntheticaBlueMoonLookAndFeel;
try
{
UIManager.setLookAndFeel(new SyntheticaBlueMoonLookAndFeel());
}
catch (Exception e)
{
e.printStackTrace();
}
因此我在导入后收到此错误消息
So I got this error message after the import
无法解析de.javasoft.plaf.synthetica.SyntheticaLookAndFeel类型。它是从所需的.class文件间接引用的。
这是Eclipse的截图。
This is a screenshot from Eclipse.
推荐答案
执行以下操作,看看这是否可以解决您的问题:
Do the following, and see if this resolves your problem:
- 右键单击您的项目并选择属性。
- 在选项窗格中选择Java Build Path,然后选择Libraries选项卡。
- 单击添加JAR ...或添加外部JAR ...并搜索并添加Synthetica.jar。
- 完成后,单击确定。
- Right-Click your project and select "Properties".
- Select "Java Build Path" on the option pane and select "Libraries" tab.
- Click "Add JARs..." or "Add External JARs..." and search and add "Synthetica.jar".
- Once done, Click "OK".
现在运行你的应用程序。
Now run your application.
我假设你在Eclipse中运行你的应用程序。
I'm assuming you're running your application within Eclipse.
这篇关于Eclipse中的LookAndFeel Java Synthetica的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!