JDK-4386259 : JList, Spacebar functionality to select and deselect JList items is broken
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86
  • Submitted: 2000-11-06
  • Updated: 2004-08-31
  • Resolved: 2004-04-26
Related Reports
Duplicate :  
Description

Name: jbT81659			Date: 11/06/2000

JList does not respond to SpaceBar and "Shift-SpaceBar" for making 
a selection or extending the selection of JList Items as supposed to. 
"Ctrl-SpaceBar" used to toggle selections without affecting previous 
selections is also not functional.

To reproduce bug:
1- Go to JDK installation directory ../Demo/JFC/SwingSet2
2- do "java - jar SwingSet2.jar"
3- Choose JList demo
4- do "Ctrl-A" or "Ctrl-/" to select all JList Items
   Note that all items are selected
5- Do "Ctrl-Spacebar" to toggle selections
   Note there is NO response
6- Do "Shift-Spacebar" to extend selection.
   Note there is NO response
7- Do Spacebar to make a selection
    Note there is NO reponse


WorkAround:
======================================================================

Comments
EVALUATION The space bar semantics have never worked correctly as the current DefautListSelectionModel requires the lead to be selected. scott.violet@eng 2000-11-28 This was fixed by the discontiguous selection work done in 4303294. ###@###.### 2004-04-26
28-11-2000