FULL PRODUCT VERSION :
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
I compiled and ran the SimpleTableDemo.java file that is included in the "How to use Tables" section of the Java tutorial.
When you use CTRL-Click to select multiple lines in the table it works OK, but if you have multiple lines selected and then do a CTRL-Click and then drag the mouse even a tiny bit while the mouse button is still down it clears the existing selection and just selects the current row where the mouse is.
When I compiled and ran this program under JDK 1.4.2 I did not see this behavior, when I did CTRL-Click-Drag mouse the previous selection stayed selected.
This is a problem for us because we have JTables with lots of rows, and sometimes users want to select many rows at a time using the CTRL-Click. So they hold down the CTRL key and then start clicking the mouse on the rows they want while moving the mouse down the table. If they happen to hold down the mouse button while they are moving it (thus creating a mouse drag) the entire previous selection they had is cleared and just the current row is selected.
REPRODUCIBILITY :
This bug can be reproduced always.
Release Regression From : 1.4.2_05
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.