On Wed, 4 Nov 2020 14:35:35 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

>>> The locx,locy calculation to move to center of screen is done intentionally 
>>> as we need to use the same coordinate in robot to capture the screen
>> 
>> You can use locx/loxy intentionally to move the window, but you can't use it 
>> in a robot because of:
>>> you will need to get the actual bounds of the window(locx and locy might be 
>>> ignored/tweaked by the OS)
>
> Modified to use bounds.

GC.getBounds() and Toolkit.getScreenSize() return the same bounds, but the 
bounds of the screen, not the window bounds.

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

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

Reply via email to