我正在用Eclipse和WindowBuilder开发一个应用程序。
我试着给GUI应用程序添加一个外观。
我使用了Synthetica BlueMoon Look and Feel
。
我将Synthetica.jar添加到类路径中,并将以下代码添加到main:
import de.javasoft.plaf.synthetica.SyntheticaBlueMoonLookAndFeel;
try
{
UIManager.setLookAndFeel(new SyntheticaBlueMoonLookAndFeel());
}
catch (Exception e)
{
e.printStackTrace();
}
因此,我在导入后收到以下错误消息
The type de.javasoft.plaf.synthetica.SyntheticaLookAndFeel cannot be resolved. It is indirectly referenced from required .class files
这是来自Eclipse的屏幕截图。
发布于 2011-04-28 23:12:52
执行以下操作,看看这是否解决了您的问题:
Java
现在运行您的应用程序。
我假设您是在Eclipse中运行应用程序。
发布于 2015-12-30 21:15:53
java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthUI我找到了解决方案。我也面临着同样的问题。它需要额外的罐子。
需要JARS
1) seaglasslookandfeel0.2 at 0.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)您选择的synthetica的主题jar:http://www.javasoft.de/synthetica/themes/
5) synthetica add ons jar支持date picker等http://www.jyloo.com/syntheticaaddons/download/等swing插件
https://stackoverflow.com/questions/5820757
复制相似问题