Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6353378

Some of the menus and Menubar are messed up when changing the menubar font at runtime

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic, x86
    • OS:
      generic, windows_2008
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                pmohansunw Praveen Mohan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: