-
Bug
-
Resolution: Fixed
-
P2
-
1.1.4, 1.2.0
-
None
-
1.1.5
-
unknown, sparc
-
solaris_2.5.1, solaris_2.6
-
Not verified
Support for a selectionMode in JList and ListSelectionModel, was never
implemented (as of Swing0.6) It did make it into TreeSelectionModel. This is basic list functionality.
From: David Geary <###@###.###>
To: swing feedback <###@###.###>
Subject: BUG: JList Non-Contiguous Multiple Selection
Date: Thu, 13 Nov 1997 15:47:00 -0600
It seems that BasicListUI only allows multiple selection of contiguous
items. Is there a way to do non-contiguous multiple selection?
As far as I can tell, BasicListUI does not allow non-contiguous multiple
selection, even though it is supported via
ListSelectionModel.addSelectionInverval().
Unless I am mistaken, the only way to have non-contiguous multiple
selection in a list is to implement a new look and feel - ugh.
Hopefully, I'm mistaken.
btw, the javadoc for JList is confusing regarding this point:
"A component that allows the user to select one or more objects from
a list ..."
and later on ...
"By default JList supports single selection, i.e. zero or one index
can be selected..."
It seems to me that neither statement is accurate.
PS: I'd really appreciate it if someone could either point out how to
do non-contiguous multiple selection in a JList, or verify that it's
currently not implemented. Thanks.
david
implemented (as of Swing0.6) It did make it into TreeSelectionModel. This is basic list functionality.
From: David Geary <###@###.###>
To: swing feedback <###@###.###>
Subject: BUG: JList Non-Contiguous Multiple Selection
Date: Thu, 13 Nov 1997 15:47:00 -0600
It seems that BasicListUI only allows multiple selection of contiguous
items. Is there a way to do non-contiguous multiple selection?
As far as I can tell, BasicListUI does not allow non-contiguous multiple
selection, even though it is supported via
ListSelectionModel.addSelectionInverval().
Unless I am mistaken, the only way to have non-contiguous multiple
selection in a list is to implement a new look and feel - ugh.
Hopefully, I'm mistaken.
btw, the javadoc for JList is confusing regarding this point:
"A component that allows the user to select one or more objects from
a list ..."
and later on ...
"By default JList supports single selection, i.e. zero or one index
can be selected..."
It seems to me that neither statement is accurate.
PS: I'd really appreciate it if someone could either point out how to
do non-contiguous multiple selection in a JList, or verify that it's
currently not implemented. Thanks.
david
- duplicates
-
JDK-4096197 DefaultListSelectionModel does not support Shift-Click
-
- Closed
-