An issue in Look&Feel

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

An issue in Look&Feel

Postby visser300 » Mon May 24, 2010 11:57 am

Hi,

My company bought this framework so I have to work with this tool at the very first time.

I don't know why I can't set look and feel for my JDialog. I used this code in my JDialog's contrustor to set a new look and feel for my it.

LookAndFeelFactory.installJideExtension(LookAndFeelFactory.OFFICE2007_STYLE);
LookAndFeelFactory.setDefaultStyle(LookAndFeelFactory.OFFICE2007_STYLE);
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Or
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
LookAndFeelFactory.installJideExtension(LookAndFeelFactory.OFFICE2007_STYLE);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

I wrote this code base on the instruction of JIDE docs. I strongly believe that this is a bug in JIDE. Any idea?

PS: Why can't I view posts in other "rooms"?
visser300
 
Posts: 2
Joined: Mon May 24, 2010 11:27 am

Re: An issue in Look&Feel

Postby JIDE Support » Mon May 24, 2010 12:08 pm

Please try to invoke those methods before you initialize your Dialog. The reason is that, those settings are going to change the UIDefaults. It could be late when you invoke it inside a component's constructor.

You just need to email sales@jidesoft.com and ask for the permission after you purchased the license per instructions in the delivery email we sent you. Anyway, you should have access now.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 73 guests