swingx
  1. swingx
  2. SWINGX-1417

JXRadioGroup does not propery implement ActionListener methods

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3
    • Component/s: Misc Component
    • Labels:
      None

      Description

      JXRadioGroup uses an ArrayList to manage ActionListeners. This is incorrect behavior because it can cause incorrect notification if the list is altered during notification. We should use the EventListenerList built into JComponent.

      This also causes serialization fail to because EventListenerList will not attempt to serials unserializable listeners, but the ArrayList will.

        Activity

        Karl Schaefer created issue -
        Hide
        Karl Schaefer added a comment -

        SWINGX-1417: Ensure that we are using EventListenerList to manage the ActionListeners for JXRadioGroup.

        swingx-core/src/main/java/org/jdesktop/swingx/JXRadioGroup.java

        Committed revision 3958.

        Show
        Karl Schaefer added a comment - SWINGX-1417 : Ensure that we are using EventListenerList to manage the ActionListeners for JXRadioGroup. swingx-core/src/main/java/org/jdesktop/swingx/JXRadioGroup.java Committed revision 3958.
        Karl Schaefer made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Karl Schaefer
            Reporter:
            Karl Schaefer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: