RFR: 8190264: JScrollBar ignores its border when using macOS Mac OS X Aqua look and feel [v4]
Alisen Chung
achung at openjdk.java.net
Thu Dec 2 20:22:16 UTC 2021
On Wed, 24 Nov 2021 06:07:31 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Just updated the automation. I added a robot to try to move the thumb into the red zone, then had the robot click again to see if the thumb is under the cursor. If the behavior is correct, the thumb should have stopped before entering the red zone and scrollbar mouseListener should only detect 1 click. Otherwise it will detect 2 clicks (thumb is under cursor) and test fails. Is my logic correct?
>
> But it is not necessary to use the robot at all? Can you try to set the scollbar thumb position/move it programmatically w/o a robot? If it is possible then it will be rendered on top of the red area -> it will be possible to render it to the buffered image and just check the pixel in the right position(is it red or not).
Is using robot to get the pixel color alright?
-------------
PR: https://git.openjdk.java.net/jdk/pull/6374
More information about the client-libs-dev
mailing list