-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
x86
-
windows_xp
I am having a frame with a button and a menu. On clicking the button, I am calling remove(getMenuBar()) inside the actionPerformed(). After that, I am invalidating the frame and validating it. I expect the components in the frame to be laid out properly. But I am seeing a gap at the bottom of the frame just below the button and button is not moved down until I resize the frame manually. I think the components must be re-laid out automatically when I validate the frame after the removal.
This works fine on 1.3.1 but does not work on 1.4+ on Win32 platforms. This works fine on Solaris/Linux with Motif as well as XToolkit. Hence this is a regression introduced in 1.4.
I have attached a sample test. Execute the sample test. You would see a frame with a button and a menubar. Click the button. The menubar must be removed. If you see a gap right below the button, the bug is reproduced.
###@###.### 10/19/04 17:42 GMT
This works fine on 1.3.1 but does not work on 1.4+ on Win32 platforms. This works fine on Solaris/Linux with Motif as well as XToolkit. Hence this is a regression introduced in 1.4.
I have attached a sample test. Execute the sample test. You would see a frame with a button and a menubar. Click the button. The menubar must be removed. If you see a gap right below the button, the bug is reproduced.
###@###.### 10/19/04 17:42 GMT
- duplicates
-
JDK-6774294 AWT_Menu/Manual/PopupMenuTest The Frame is not properly laid out
-
- Closed
-
- relates to
-
JDK-2207731 AWT_Menu/Manual/PopupMenuTest The Frame is not properly laid out
-
- Closed
-