On Thu, 2 Dec 2021 20:18:51 GMT, Alisen Chung <[email protected]> wrote:

>> 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?

You can render directly to the BufferedImage instead of the JFrame, so in this 
case, it will not be necessary to use a robot, you will be able to check the 
pixel directly.

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

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

Reply via email to