Eclipse 中的 LookAndFeel Java Synthetica
我正在 Eclipse 和 WindowBuilder 中开发一个应用程序。
我尝试为 GUI 应用程序添加外观。
我使用了 Synthetica BlueMoon 外观
。
我将 Synthetica.jar 添加到类路径中,并将此代码添加到主目录中:
import de.javasoft.plaf.synthetica.SyntheticaBlueMoonLookAndFeel;
try
{
UIManager.setLookAndFeel(new SyntheticaBlueMoonLookAndFeel());
}
catch (Exception e)
{
e.printStackTrace();
}
因此,在导入
The type de.javasoft.plaf.synthetica.SyntheticaLookAndFeel 无法解析后,我收到此错误消息。它是从所需的 .class 文件间接引用的
这是 Eclipse 的屏幕截图。
I'm developing an application in Eclipse and WindowBuilder.
I tried to add a look and feel to GUI application.
I used Synthetica BlueMoon Look and Feel
.
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
The type de.javasoft.plaf.synthetica.SyntheticaLookAndFeel cannot be resolved. It is indirectly referenced from required .class files
This is a screenshot from Eclipse.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
执行以下操作,看看是否可以解决您的问题:
现在运行您的应用程序。
我假设您正在 Eclipse 中运行应用程序。
Do the following, and see if this resolves your problem:
Now run your application.
I'm assuming you're running your application within Eclipse.
java.lang.NoClassDefFoundError:sun/swing/plaf/ Synth/SynthUI 我找到了解决方案。我遇到了同样的问题。它需要额外的罐子。
JARS 需要
1)seaglasslookandfeel0.2 罐子
https://seaglass.googlecode.com/svn/doc/downloads.html
2)synthetica.jar http://www.javasoft.de/synthetica/download/
3) junit 3.8 jar
4)您选择的synthetica主题jar: http://www.javasoft.de/synthetica/themes/ 5
)syntheta插件jar来支持swing插件,如日期选择器等
http://www.jyloo.com/syntheticaaddons/download/
java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthUI I found the solution. I faced the same issue. It needs additional jars.
JARS Required
1) seaglasslookandfeel0.2 jar at
https://seaglass.googlecode.com/svn/doc/downloads.html
2) synthetica.jar http://www.javasoft.de/synthetica/download/
3) junit 3.8 jar http://www.java2s.com/Code/Jar/j/Downloadjunit309jar.htm
4) The theme jar of synthetica that you select: http://www.javasoft.de/synthetica/themes/
5) synthetica add ons jar to support swing addons like date picker etc
http://www.jyloo.com/syntheticaaddons/download/