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

Readding component does nothing

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Imported:
                Indexed: