classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Need Approval: Patch for DefaultListSelectionModel


From: Anthony Balkissoon
Subject: [cp-patches] Need Approval: Patch for DefaultListSelectionModel
Date: Tue, 28 Jun 2005 15:57:42 -0400

Calling fireValueChanged when the list didn't actually change can cause
infinite loops if Listeners perform some action on the list.  This patch
fixes the problem for javax/swing/DefaultListSelectionModel.java

Patch is pending approval.

Patch is attached.

2005-06-28  Anthony Balkissoon  <address@hidden>

        * javax/swing/DefaultListSelectionModel.java:
        (addSelectionInterval):
        (clearSelection):
        (removeSelectionInterval):
        (setLeadSelectionIndex):
        (setSelectionInterval): Check that the selection model actually
        changes before calling fireValueChanged.

Attachment: ListSelectionValueChanged.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]