-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b50
-
generic, x86
-
generic, solaris_8, windows_xp
Under the ocean theme, a gradient is painted behind menus and toolbars. If a toolbar is adjacent to a menu bar, the individual gradients are painted to look like one. If the toolbar is then moved elsewhere, or detached completely from the frame, the gradient behind the menu bar is changed. Currently, it is not being repainted.
To reproduce:
- Launch SwingSet2
- Notice a shared gradient behind the menu bar and toolbar
- Drag the toolbar out of the main frame by its thumb and drop it, thereby putting it in its own window
- Notice that the section of gradient behind the menu doesn't change
- Obscure the menu portion of the frame with another window and then show it again
- Notice that the menu bar has now been repainted with a distinct light to dark gradient
- This light to dark gradient should be apparent immediately after the toolbar is removed without having to force a repaint
Note that the same issue occurs when re-adding the toolbar to the main frame. To see this, hit the close button (the "X" button on Windows) on the toolbar.
To reproduce:
- Launch SwingSet2
- Notice a shared gradient behind the menu bar and toolbar
- Drag the toolbar out of the main frame by its thumb and drop it, thereby putting it in its own window
- Notice that the section of gradient behind the menu doesn't change
- Obscure the menu portion of the frame with another window and then show it again
- Notice that the menu bar has now been repainted with a distinct light to dark gradient
- This light to dark gradient should be apparent immediately after the toolbar is removed without having to force a repaint
Note that the same issue occurs when re-adding the toolbar to the main frame. To see this, hit the close button (the "X" button on Windows) on the toolbar.
- duplicates
-
JDK-4975573 JMenuBar failes to redraw when a JToolBar is dragged over it.
- Closed
-
JDK-5096816 Swing menubar doesn't paint it's gradient and border and repaints inconsistently
- Closed
-
JDK-6308205 Using JTollBar & JMenuBar together, under the CROSS L&F, JMenuBar will change
- Closed