Eclipse中的LookAndFeel Java Synthetica [英] LookAndFeel Java Synthetica in Eclipse

查看:665
本文介绍了Eclipse中的LookAndFeel Java Synthetica的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在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:


  1. 右键单击您的项目并选择属性。

  2. 在选项窗格中选择Java Build Path,然后选择Libraries选项卡。

  3. 单击添加JAR ...或添加外部JAR ...并搜索并添加Synthetica.jar。

  4. 完成后,单击确定。

  1. Right-Click your project and select "Properties".
  2. Select "Java Build Path" on the option pane and select "Libraries" tab.
  3. Click "Add JARs..." or "Add External JARs..." and search and add "Synthetica.jar".
  4. Once done, Click "OK".

现在运行你的应用程序。

Now run your application.

我假设你在Eclipse中运行你的应用程序。

I'm assuming you're running your application within Eclipse.

这篇关于Eclipse中的LookAndFeel Java Synthetica的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆