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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b32
    • Introduced In Version:
      6
    • Resolved In Build:
      b79
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: