我正在尝试将Sea Glass LAF用于Java应用程序,但它提供了类未找到异常(在使用JDK 8的Windows中)。我将seaglass-0.1.7.3 jar文件添加到库文件夹并将其添加到构建路径。我还在代码中添加了import com.seaglasslookandfeel.*;
,但它显示为未使用的导入。无法使用Sea Glass LAF用于Java应用程序
下面是我的代码:
public static void main(String[] args)
{
EventQueue.invokeLater(new Runnable()
{
@Override
public void run()
{
try
{
UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
setHomeWindow(new HomeWindow());
window.getFrame().setVisible(true);
}
catch (Exception e)
{
e.printStackTrace();
}
}
});
}
我怎样才能解决这个问题,并使用SEAGLASS?任何帮助深表感谢。
我使用seaglass 0.1.7.3从这里http://www.java2s.com/Code/Jar/s/Downloadseaglasslookandfeel02jar.htm测试了上述代码,我遇到了和你一样的错误。尝试下载0.2 seaglass jar版本,它会工作。 – aurelianr
更改jar版本解决了它,谢谢:)不幸的是,当使用Sea Glass时卡面板不能很好地工作。 – Fleur