Look and feel extensions mess up application menu

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.

Look and feel extensions mess up application menu

Postby JohnnyK » Mon Apr 11, 2011 8:43 am

Hello,

I am currently trying out the Searchable feature. Although this is working fine, I observed that the JIDE look and feel extensions are automatically applied when the feature is used. This has some drawbacks regarding the applications menu:

- Before look and feel extensions have been applied

before.png
Application menu before using Searchable
before.png (22.44 KiB) Viewed 6851 times


- After look and feel extensions have been applied

after.png
Application menu after using Searchable
after.png (24.08 KiB) Viewed 6851 times


Is this behaviour desired?

Some information that might help to reproduce my issue:
  • Version: 2.11.2
  • Look and feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
  • OS: Windows Vista

Thanks in advance,
- Thomas
Attachments
LookAndFeelExtension.java
Source code
(2.51 KiB) Downloaded 345 times
JohnnyK
 
Posts: 2
Joined: Mon Apr 11, 2011 5:16 am

Re: Look and feel extensions mess up application menu

Postby JIDE Support » Mon Apr 11, 2011 9:11 am

We have to install JIDE extensions for JIDE components. Please use the following code to avoid the drawback.
Code: Select all
    private static void setLookAndFeel() {
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch (Exception e) {
            e.printStackTrace();
//            ignore
        }
        LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU);
    }

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

Re: Look and feel extensions mess up application menu

Postby JohnnyK » Tue Apr 12, 2011 3:56 am

Thank you very much, with this code snippet it works like a charm.

- Thomas
JohnnyK
 
Posts: 2
Joined: Mon Apr 11, 2011 5:16 am

Re: Look and feel extensions mess up application menu

Postby jschlade » Wed Nov 02, 2016 9:13 am

Hi,

Is there anyway to keep the default color of tabs when using JideTabbedPane and use the default black/grey menu color when using the default L&Fs on Windows 7? Using Java 1.8.

When I use LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU) I keep the menu coloring I want but the tab color goes disappears.

Thanks

MenuColor1.png
MenuColor1.png (27.71 KiB) Viewed 4669 times
MenuColor2.PNG
MenuColor2.PNG (27.59 KiB) Viewed 4669 times
Menu2.png
Menu2.png (26.61 KiB) Viewed 4669 times
jschlade
 
Posts: 4
Joined: Mon Apr 04, 2011 5:57 am

Re: Look and feel extensions mess up application menu

Postby td84 » Thu Nov 03, 2016 3:37 pm

Hello,

i noticed, if i use any of the JIDE component, there will be always a checkmark in front of a Jmenu element, like on the image for the Jmenuitem "Import".
If there is no JIDE component in my project, then there is no checkmark.
Is ther a way to remove entirely this checkmark?

Thanx,
Daniel
Attachments
after.png
after.png (24.08 KiB) Viewed 4660 times
td84
 
Posts: 25
Joined: Tue Dec 08, 2015 4:02 pm

Re: Look and feel extensions mess up application menu

Postby jschlade » Fri Nov 04, 2016 12:34 am

Need to call LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU). See javadoc for more info.
jschlade
 
Posts: 4
Joined: Mon Apr 04, 2011 5:57 am

Re: Look and feel extensions mess up application menu

Postby td84 » Tue Nov 22, 2016 7:17 am

jschlade wrote:Need to call LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU). See javadoc for more info.


Thanx. Now it works great.
td84
 
Posts: 25
Joined: Tue Dec 08, 2015 4:02 pm


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

Who is online

Users browsing this forum: No registered users and 3 guests

cron