-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
6u1
-
x86
-
windows_xp
J2SE Version (please include all output from java -version flag):
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
Does this problem occur on J2SE 1.4.x or 5.0.x or 6.0? Yes / No (pick one)
Yes
Operating System Configuration Information (be specific):
Microsoft Windows XP [Version 5.1.2600]
RFE make selection modes on JTree consistent with those on JList / JTable
* JList and JTable each have a setSelectionMode method, JTree does not (requires calling
setSelectionMode on it's selection model)
* calling setSelectionMode on JTree's selection model changes the selection, calling it on
JList and JTable's
selection model does not (will leave the selection invalid when multiple
rows were selected and changing to SINGLE_SELECTION)
* we can listen for changes on JTree's selection mode, on JList and JTable's selection mode we
can not
* DefaultTreeSelectionModel uses a DefaultListSelectionModel, however changing the selection mode
on one does not change it on the other, we even use TreeTables sharing the same listSelectionModel
which means
we have to do extra work to make sure that when the selection mode is changed on the
listSelectionModel we also change it on the treeSelectionModel (and vice versa)
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
Does this problem occur on J2SE 1.4.x or 5.0.x or 6.0? Yes / No (pick one)
Yes
Operating System Configuration Information (be specific):
Microsoft Windows XP [Version 5.1.2600]
RFE make selection modes on JTree consistent with those on JList / JTable
* JList and JTable each have a setSelectionMode method, JTree does not (requires calling
setSelectionMode on it's selection model)
* calling setSelectionMode on JTree's selection model changes the selection, calling it on
JList and JTable's
selection model does not (will leave the selection invalid when multiple
rows were selected and changing to SINGLE_SELECTION)
* we can listen for changes on JTree's selection mode, on JList and JTable's selection mode we
can not
* DefaultTreeSelectionModel uses a DefaultListSelectionModel, however changing the selection mode
on one does not change it on the other, we even use TreeTables sharing the same listSelectionModel
which means
we have to do extra work to make sure that when the selection mode is changed on the
listSelectionModel we also change it on the treeSelectionModel (and vice versa)