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

Change listeners so that models don't pin down components

    XMLWordPrintable

Details

    • Fix Understood
    • sparc
    • solaris_7

    Description

      To track changes in models all of Swing's widgets install listeners on the model. This introduces a cycle, in that the JComponent references the model and the model references the JComponent. If a developer isn't aware of this and has a model with a longer life time than the JComponent they'll effectively keep around a lot of Components that aren't needed resulting in leaks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: