Java Substance look and feel problem
Asked Answered
M

3

7

I have a problem with substance look and feel. I'm trying to set Office 2007 LAF as descibed here.

    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

What am I doing wrong? Anybody have experience with substance LAF?

Manizales answered 23/5, 2010 at 18:36 Comment(0)
T
12

It'd seem that you need the Trident library in order to use Substance. Grab it and stick it in your classpath and it should work.

Tactual answered 23/5, 2010 at 18:44 Comment(2)
thanks! it works. By why it can't work without this library? Why substance distributes without this library?Manizales
No idea :). It is listed on the substance download page: substance.dev.java.net/servlets/…, but that seems to be about it.Tactual
M
1

Ok... here goes... http://insubstantial.github.com/insubstantial/

Download your JAR from there

Meunier answered 23/5, 2010 at 18:52 Comment(0)
M
0

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 substance on your desktop and try and add that to your classpath.

Isn't org.pushingpixels provide any download link to the Substance L&F JAR? Try that too....

Lemme know if that helped...

Meunier answered 23/5, 2010 at 18:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.