-
Bug
-
Resolution: Fixed
-
P2
-
6
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.
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.
- relates to
-
JDK-6189461 getLocationOnScreen() returns incorrect values when the frame is in minimized state
-
- Open
-
-
JDK-6231718 Insets become bogus on restoring an iconified frame
-
- Closed
-