Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4178458
Votes 0
Synopsis Javax_swing classes do not respond to both sets of arrow keys.
Category java:classes_swing
Reported Against 1.2fcs
Release Fixed 1.2.2
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 4178701 , 4179282 , 4207036
Submit Date 02-OCT-1998
Description
  xxxxx@xxxxx   1998-10- customer 

There are two sets of arrow keys on most keyboards.  The swing classes
respond to arrow keys in the non-numeric keypad but do not respond to
the other set of arrow keys.

#!/bin/ksh
JDK=/net/mulder.eng/export/mulder3/jdk12x/ customer /jdk1.2FCS_K
JCK=/net/jde1.eng/export/jtech23/JCK-12a
PATH=${JDK}/bin:/usr/dt/bin:/usr/bin:/bin:/usr/openwin/bin
LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
export PATH
export LD_LIBRARY_PATH
export CLASSPATH
echo $testURL
java -fullversion
testURL=file:${JCK}/tests/api/javax_swing/interactive/JListTests.html#JList
java -verify  javasoft.sqe.tests.api.javax.swing.interactive.JList.JListTests  -TestCaseID JListTest0002  -TestDirURL $testURL

Once running, select a JList entry and attempt to use the non-numeric arrow keys. The up and down arrows will move the selection up or down; the left and right keys will do nothing. That's as it should be.

Now try the numeric arrow keys (make sure that Num Lock is not lit). nothing will happen. This is a bug.

  xxxxx@xxxxx   1998-10- customer 

Note that some keyboards only have the numeric arrow keys; on such keyboards, there are no arrow keys that work to move the selection.

Modified by 

  xxxxx@xxxxx   1998-10-07

June Zhong just encountered what Hania described when attempting to run the test
api/javax_swing/interactive/JScrollBarTests.html on the FCS candidate.


  xxxxx@xxxxx   1998-11-12
Work Around
N/A
Evaluation
Swing only acts on the non-numeric arrow key codes; new keycodes were added for the numeric pad arrow keys in 1.2, and Swing should act on those, too.
  xxxxx@xxxxx   1998-10-07
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang