JDK-7194184 : JColorChooser swatch cannot accessed from keyboard
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-08-27
  • Updated: 2014-02-05
  • Resolved: 2012-09-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b61Fixed
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]
20-09-2012