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

Readding component does nothing

XMLWordPrintable

    • Fix Understood
    • generic
    • generic

      When the component is removed from a Container and later added there, nothing happens.
      Please see attached java source for demonstration.
      Initially three test components are created, then using a button they are changed in the BorderLayout.CENTER.

      First try it as is. You will get "Test component 1", "Test component 2" and "Test component 3".
      Then change line 70 to:
      boolean setBounds = true;
      and run again. This time the labels will cycle as you click infinitely.

      I was able to reproduce it on 1.6.0_02 and 1.5.0_12 on linux and windows.

            dav Andrei Dmitriev (Inactive)
            jtusla Jiri Tusla (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: