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

REGRESSION: Removing a menubar at runtime does not re-layout the components properly, on win32

XMLWordPrintable

    • 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

            dav Andrei Dmitriev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: