<Swing Dev> RFR: 8216358: [accessibility] [macos] The focus is invisible when tab to "Image Radio Buttons" and "Image CheckBoxes"

Sergey Bylokhov serb at openjdk.java.net
Thu Feb 4 01:12:41 UTC 2021


On Wed, 3 Feb 2021 23:50:16 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> 8216358: [accessibility] [macos] The focus is invisible when tab to "Image Radio Buttons" and "Image CheckBoxes"
>
> test/jdk/javax/swing/JCheckBox/ImageCheckboxFocus/ImageCheckboxTest.java line 68:
> 
>> 66:     public void performTest() throws Exception {
>> 67:         try {
>> 68:             BufferedImage imageFocus1 = null;
> 
> Probably the usage of Robot/Frame could be removed? Could you try to create the buffered image and button then paint the button to the graphics via button.paint(Graphics)? I guess in this case you can check the content of the buffered image directly w/o the robot.

How it will work if the button was too small say w=4 pixels?

-------------

PR: https://git.openjdk.java.net/jdk/pull/2384


More information about the swing-dev mailing list