Interuption to look and 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.

Interuption to look and feel

Postby lukasz.antoniak » Fri Nov 30, 2007 3:45 pm

Hi everyone,

I am quite new to JIDE but I found it very usefull and want to use some features in my project.

I am setting Look'n'Feel manager like this:
Code: Select all
javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");


Than I want to use only JideTabbedPane, so I import only com.jidesoft.swing.JideTabbedPane. But when I look at my menu, the look of some buttons has changed. When I add then to my Jmenu like this:
Code: Select all
FileMenu.add(NewFileJMenuItem);
everything is ok. But if I do:
Code: Select all
FileMenu.add(new FileSaveAction());
the look changes. FileSaveAction extends AbstractAction.

In this picture we can see normal "New File" and changed "Save".
http://mion.elka.pw.edu.pl/~lantonia/Do ... tmp/sr.PNG

How can I prevent JIDE from influencing on my Look'n'Feel?
lukasz.antoniak
 
Posts: 3
Joined: Fri Nov 30, 2007 12:49 pm

Postby JIDE Support » Fri Nov 30, 2007 3:48 pm

If you just use JIDE Common Layer, you can call LookAndFeelFactory.setDefaultStyle(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU) so that JIDE will not mess up with menu related UIDefaults. Yu will not be able to use JIDE Action Framework if you call it but I guess you are not using it anyway.

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 65 guests