On Wed, 3 Feb 2021 23:50:16 GMT, Sergey Bylokhov <s...@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

Reply via email to