-
Bug
-
Resolution: Fixed
-
P4
-
6, 7
-
b01
-
generic, x86
-
generic, windows_2008
-
Verified
I have added a menu bar to a frame and multiple menus to the menubar. On clicking a menu item, I am changing the font of the menu bar by calling MenuBar.setFont(font). After this, when I click on any of the menus, the menu items in the menu are completely messed up, especially the ones that I clicked just before for making the change. On XToolkit, the menubar font is also changing and hence the entire menubar is messed up whereas on Win32, only the menu and menu items are messed up and not the menubar since menubar font does not change.
This is reproducible on XToolkit as well as Win32. On Solaris, this is failing only on XToolkit and not on Motif since on Motif, changing the menubar font does not work at all. On Win32, this is seen atleast since 1.4.2.
Removing the menubar and adding it again, solves the problem on Win32 as well as XToolkit.
I have attached a sample test. Execute the sample test. Click on 'File' -> 'Open' -> any of the menu items shown there. After that, you would see menu bar being completely messed up on XToolkit and File menu being messed up on Win32.
This is reproducible on XToolkit as well as Win32. On Solaris, this is failing only on XToolkit and not on Motif since on Motif, changing the menubar font does not work at all. On Win32, this is seen atleast since 1.4.2.
Removing the menubar and adding it again, solves the problem on Win32 as well as XToolkit.
I have attached a sample test. Execute the sample test. Click on 'File' -> 'Open' -> any of the menu items shown there. After that, you would see menu bar being completely messed up on XToolkit and File menu being messed up on Win32.
- relates to
-
JDK-6502052 Some of the menus and Menubar are messed up when changing the menubar font at runtime (under X)
-
- Closed
-