-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
5.0
-
generic
-
solaris_8
Date: Thu, 08 Jan 2004 13:30:15 +0100
From: <###@###.###>
Subject: Bugreport
To: ###@###.###
Java version
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode)
OS
Windows XP professional SP 1
Synopsis
JMenuBar failes to redraw when a JToolBar is dragged over it.
Source code
JFrame frame = new JFrame();
JMenuBar menuBar = new JMenuBar();
JMenu menu = new JMenu("File");
JMenuItem item1 = new JMenuItem("Open");
menu.add(item1);
menuBar.add(menu);
frame.setJMenuBar(menuBar);
JToolBar toolBar = new JToolBar();
toolBar.add(new AbstractAction("ascsc"){public void
actionPerformed(ActionEvent e){}});
frame.getContentPane().add(toolBar);
frame.setSize(640,480);
frame.setVisible(true);
How to
compile and run sample program
drag toolbar (making it a window)
drag the window ontop of the menu, a trail of a different color is left
behind
From: <###@###.###>
Subject: Bugreport
To: ###@###.###
Java version
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode)
OS
Windows XP professional SP 1
Synopsis
JMenuBar failes to redraw when a JToolBar is dragged over it.
Source code
JFrame frame = new JFrame();
JMenuBar menuBar = new JMenuBar();
JMenu menu = new JMenu("File");
JMenuItem item1 = new JMenuItem("Open");
menu.add(item1);
menuBar.add(menu);
frame.setJMenuBar(menuBar);
JToolBar toolBar = new JToolBar();
toolBar.add(new AbstractAction("ascsc"){public void
actionPerformed(ActionEvent e){}});
frame.getContentPane().add(toolBar);
frame.setSize(640,480);
frame.setVisible(true);
How to
compile and run sample program
drag toolbar (making it a window)
drag the window ontop of the menu, a trail of a different color is left
behind
- duplicates
-
JDK-4963120 Ocean Theme: Menu bar needs repainting when toolbar is detached
-
- Resolved
-