United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7194184 JColorChooser swatch cannot accessed from keyboard
JDK-7194184 : JColorChooser swatch cannot accessed from keyboard

Details
Type:
Enhancement
Submit Date:
2012-08-27
Status:
Resolved
Updated Date:
2014-02-05
Project Name:
JDK
Resolved Date:
2012-09-20
Component:
client-libs
OS:
linux
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
It is OS independent. The OS I tested is Linux d61 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
It is not able to move the focus to SwatchPanel with TAB, and cannot select color using keyboard, this can be seen in SwingSet2 demo.

Steps:
1. run SwingSet2 demo
2. click on JColorChooser demo
3. click Background button and Swatches panel appears.
4. Press Tab key     =>   focus moves to OK button as shown in this image http://cr.openjdk.java.net/~zhouyx/OJDK-61/screenshot_1.png

For more information, please refer to http://mail.openjdk.java.net/pipermail/swing-dev/2012-August/002189.html

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Steps:
1. run SwingSet2 demo
2. click on JColorChooser demo
3. click Background button and Swatches panel appears.
4. Press Tab key     =>   focus moves to OK button as shown in this image http://cr.openjdk.java.net/~zhouyx/OJDK-61/screenshot_1.png

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Focus goes to colors and can be selected using space bar. Like http://cr.openjdk.java.net/~zhouyx/OJDK-61/screenshot_2.png

REPRODUCIBILITY :
This bug can be reproduced always.

                                    

Comments
EVALUATION

Changeset: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/9aa37a39cf39

[SQE]
  Risk: low
  To test the fix run the test/javax/swing/JColorChooser/Test7194184.java test. 
[SQE]
                                     
2012-09-20
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/9aa37a39cf39
User:  lana
Date:  2012-10-12 18:08:25 +0000

                                     
2012-10-12



Hardware and Software, Engineered to Work Together