Hi Teunis,
Look & Feel should be set on the client side in the launcher. Also make sure
that your look & feel jars are kept along with ULC client side jars.
For example:
AppletLauncher:
public class TeamMembersAppletLauncher extends DefaultAppletLauncher {
public void init() {
setLookAndFeel();
super.init();
}
private static void setLookAndFeel() {
try {
PlasticLookAndFeel.setMyCurrentTheme(new TeamMembersTheme());
UIManager.put("ClassLoader", LookUtils.class.getClassLoader());
UIManager.setLookAndFeel(new PlasticLookAndFeel());
} catch (Exception e) {
e.printStackTrace();
}
}
}
Or JNLPLauncher:
public class TeamMembersJnlpLauncher {
public static void main(String[] args) throws Exception {
try {
PlasticLookAndFeel.setMyCurrentTheme(new TeamMembersTheme());
UIManager.put("ClassLoader", LookUtils.class.getClassLoader());
UIManager.setLookAndFeel(new PlasticLookAndFeel());
} catch (Exception e) {
e.printStackTrace();
}
DefaultJnlpLauncher.main(args);
}
}
Thanks and regards,
Janak
Thanks and regards,
Janak
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Biemond, Teunis
Sent: Thursday, October 19, 2006 1:14 PM
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. Were 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
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer