Hi,
 
did you call this function on the client side? Don't call it on the server side. This wont have any effect.
 
Best Regards,
    Ilja Pavkovic

 -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Biemond, Teunis
Sent: Thursday, October 19, 2006 9:44 AM
To: [email protected]
Subject: [ULC-developer] JGoodies Look and Feel when deploying

Hi,

 

We are having trouble to make JGoodies Look and Feel work when deploying under Weblogic 8.1, whereas it works fine using the Development Runner under Eclipse.

 

For info: our ULC applet is launched from a JSP which carries the session context from another J2EE web application forward into ULC. We’re using following code to more or less force the use of JGoodies (which is not a problem because we expect our app to only run under Windows):

 

import com.jgoodies.plaf.LookUtils;

import com.jgoodies.plaf.Options;

import com.jgoodies.plaf.plastic.theme.SkyBlue;

import com.jgoodies.plaf.plastic.PlasticLookAndFeel;

 

import javax.swing.*;

 

/**

 * This helper class can set different UIManagers.

 *

 * @author Etienne Studer

 * @see UIManager

 */

public class UIManagerHelper {

           

    public static void setJGoodiesLookAndFeel() {

        PlasticLookAndFeel.setMyCurrentTheme(new SkyBlue());

        UIManager.put(Options.USE_SYSTEM_FONTS_APP_KEY, Boolean.TRUE);

        UIManager.put("ClassLoader", LookUtils.class.getClassLoader());

        setLookAndFeel(PlasticLookAndFeel.class.getName());

    }

 

    static void setSystemLookAndFeel() {

        setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

    }

 

    private static void setLookAndFeel(String lookAndFeel) {

        try {

            UIManager.setLookAndFeel(lookAndFeel);

        } catch (Exception e) {

            e.printStackTrace();

        }

    }

}

 

This code is called as follows:

 

            UIManagerHelper.setJGoodiesLookAndFeel();

 

As far as we can see we are referencing the JGoodies library plastic-1.1.3.jar in all the places we should.

 

Anyone can help?

 

Thanks in advance & kind regards,

 

Teunis Biemond

Quyntess BV

www.quyntess.com 

 

Reply via email to