The clearSelection() method in the DefaultListSelectionModel class doesn't actually
clear the selection - fixed with this patch (committed);
2006-04-26 David Gilbert <[EMAIL PROTECTED]>
* javax/swing/DefaultListSelectionModel.java
(clearSelection): Clear the Bitset.
Regards,
Dave
Index: javax/swing/DefaultListSelectionModel.java
===================================================================
RCS file:
/sources/classpath/classpath/javax/swing/DefaultListSelectionModel.java,v
retrieving revision 1.29
diff -u -r1.29 DefaultListSelectionModel.java
--- javax/swing/DefaultListSelectionModel.java 20 Apr 2006 19:50:39 -0000
1.29
+++ javax/swing/DefaultListSelectionModel.java 26 Apr 2006 15:06:17 -0000
@@ -555,6 +555,7 @@
for (i = from; i>=0; i=sel.nextSetBit(i+1))
to = i;
+ sel.clear();
fireValueChanged(from, to, valueIsAdjusting);
}