It seems that using JideButton somehow messes up the L&F of JMenu and JMenuBar under Windows Look and Feel
Adding a single JideButton *anywhwre* in your JFrame makes all JMenuItems display a wierd 'V' left to their text
Here's a sample code (uncomment the button creation to see the correct behavior)
- Code: Select all
public static void main(String[] args) throws Exception {
UIManager.setLookAndFeel(new WindowsLookAndFeel());
JMenu mnuFile = new JMenu("File");
JMenuItem open = new JMenuItem("Save");
mnuFile.add(open);
JideButton aButton = new JideButton("A JideButton - note the V in the menu item");
//JButton aButton = new JButton("A JButton");
JMenuBar menubar = new JMenuBar();
menubar.add(mnuFile);
JFrame fr = new JFrame("JideButton issue");
fr.setJMenuBar(menubar);
fr.getContentPane().add(aButton);
fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fr.pack();
fr.setVisible(true);
}
here's a screenshot od the problem:
http://dl.dropbox.com/u/14766452/techs/ ... button.png
And a screenshot of a correct behavior using JButton:
http://dl.dropbox.com/u/14766452/techs/jide/jbutton.png
Anyone knows is that's a bug/feature/workaround?
Thanks
Eyal