Add keyboard accessibility to JColorChooser swatch (original) (raw)
Sean Chou zhouyx at linux.vnet.ibm.com
Thu Aug 9 07:29:46 UTC 2012
- Previous message: [7] Review request for 7123767 Wrong tooltip location in Multi-Monitor configurations
- Next message: Fwd: Add keyboard accessibility to JColorChooser swatch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
This is a patch to add keyboard accessibility to JColorChooser swatch,
so when using TAB, the focus can move to SwatchPanel, choose color with arrow keys and select color with space bar.
In current implementation, it is not able to move the focus to SwatchPanel with TAB, this can be seen in SwingSet2 demo. Steps:
- run SwingSet2 demo
- click on JColorChooser demo
- click Background button and Swatches panel appears.
- Press Tab key => focus moves to OK button as shown in this image http://cr.openjdk.java.net/~zhouyx/OJDK-61/screenshot_1.png
With this patch, in step4, focus moves to SwatchPanel, as shown here http://cr.openjdk.java.net/~zhouyx/OJDK-61/screenshot_2.png Then, arrow keys can be used to choose color and select color by space bar.
The webrev is http://cr.openjdk.java.net/~zhouyx/OJDK-61/webrev.00/ .
Please take a look.
-- Best Regards, Sean Chou -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20120809/354df605/attachment.html>
- Previous message: [7] Review request for 7123767 Wrong tooltip location in Multi-Monitor configurations
- Next message: Fwd: Add keyboard accessibility to JColorChooser swatch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]