Hi:
The JTable selection model is broken and I am trying to find out if someone has a written a model to fix this issue.
Here is the description from Sun's site:
Description
To reproduce:
1. Bring up SwingSet demo and go to TableView
2. Set for Row selection, One Range
3. Click on Alan Chung row (row selects)
4. Shift-click on James Gosling (range from Alan Chung to James Gosling
selects)
5. Press Return twice to move keyboard focus to Amy Fowler row
6. Shift-click on David Karlton row. The range from Amy Fowler (with keyboard
focus) to David Karlton should be selected, but instead the range from Alan
Chung to David Karlton is selected.
7. To see "proper" behavior, click on the Mark Andrews row. The range from Amy
Fowler (with keyboard focus) to Mark Andrews will be selected.
Workaround
None.
Evaluation
This behavior is due to the fact that all that is known about the
selected cells is which ones are selected. The proposed behavior
would require more information than that and cannot therefore be
implemented without substantial changes to the selection models
and their interfaces.
xxxxx@xxxxx 1999-06-30
Here is the link to Sun's bug parade regarding the broken model:
http://developer.java.sun.com/developer/bugParade/bugs/4202968.html
Thanks.
