Java Substance 外观问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2892926/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java Substance look and feel problem
提问by 2xMax
I have a problem with substance look and feel. I'm trying to set Office 2007 LAF as descibed here.
我在实体外观和感觉方面有问题。我正在尝试按照此处的描述设置 Office 2007 LAF 。
try
{
UIManager.setLookAndFeel("org.pushingpixels.substance.api.skin.SubstanceOfficeBlue2007LookAndFeel");
}catch(Exception ex)
{
System.out.println("Exception:"+ ex.getMessage());
}
But when i run this code I get exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/pushingpixels/trident/ease/TimelineEase
但是当我运行这段代码时,我得到了异常:线程“main”中的异常 java.lang.NoClassDefFoundError: org/pushingpixels/trident/ease/TimelineEase
What am I doing wrong? Anybody have experience with substance LAF?
我究竟做错了什么?任何人都对 LAF 物质有经验?
回答by Chris
It'd seem that you need the Trident libraryin order to use Substance. Grab it and stick it in your classpath and it should work.
似乎您需要Trident 库才能使用 Substance。抓住它并将其粘贴在您的类路径中,它应该可以工作。
回答by arcamax
Ok... here goes... http://insubstantial.github.com/insubstantial/
好的...这里是... http://insubstantial.github.com/insubstantial/
Download your JAR from there
从那里下载您的 JAR
回答by arcamax
Looks like corresponding JAR file is missing in your application classpath. I am not very sure of the JAR file name.... but look out for any JAR named substanceon your desktop and try and add that to your classpath.
您的应用程序类路径中似乎缺少相应的 JAR 文件。我不太确定 JAR 文件名....但是请注意桌面上任何以 JAR 命名的物质,然后尝试将其添加到类路径中。
Isn't org.pushingpixels provide any download link to the Substance L&F JAR? Try that too....
org.pushingpixels 不提供 Substance L&F JAR 的任何下载链接吗?也试试吧....
Lemme know if that helped...
让我知道这是否有帮助...

