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

REG: Container.getInsets() returns an incorrect value after removal of menubar, Win32

XMLWordPrintable

    • b32
    • 6
    • b79
    • x86
    • windows_xp
    • Verified

      I have an undecorated frame with a menubar added to it. When the menubar is in place, frame.getInsets() returns '19' as the TOP inset. Now I am removing the menubar and frame is still undecorated. When I call getInsets() after the removal of menubar, the TOP inset it still returned as 19 whereas I would expect it to be 0.

      This is a regression introduced in Mustang since it works fine on Tiger and 1.4.2. This is not reproducible with XToolkit.

      I have attached a sample test. Execute the sample test. You would see an undecorated frame with a menu bar. Click on 'File'-> 'Open' -> any of the menu items listed. Check the inset value printed on the console. Now Click on one of the buttons given at the bottom. Right click inside the textarea and click on the same menu item in the popup menu shown. If the same inset value is printed, the bug is reproduced.

            dcherepanov Dmitry Cherepanov
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: