<AWT Dev> [9] Review request for 8169133: This time, on Windows: java/awt/Robot/SpuriousMouseEvents/SpuriousMouseEvents.java

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu Nov 24 18:05:27 UTC 2016


On 24.11.16 20:36, Semyon Sadetsky wrote:
>>> Creates a Robot for the given screen device. Coordinates passed to Robot
>>> method calls like mouseMove and createScreenCapture will be interpreted
>>> as being in the same coordinate system as the specified screen.
>> This is what I am talking about:
>> "Coordinates passed to Robot method calls like mouseMove and
>> createScreenCapture will be interpreted as being in the same
>> coordinate system as the specified screen". Since both screens shares
>> the same space there is should not be important on what screen the
>> robot was created.
> The rest lines of the spec may be discarded?
>
>>  * use different coordinate systems to act as independent screens
>> This constructor is meant for the latter case.
>
> All robots may be used to address any area of the desktop regardless of
> the screen constructor argument.
> The coordinate system is the only aspect the screen argument affects.

This statement means that this constructor will have any effects when 
used for the system where each screen "use different coordinate systems 
to act as independent screens" this is not true for windows. It is true 
only for the screens on unix when each screen will have its own 
coordinate space, and which space will be used depends from on what 
screen the robot was created.

-- 
Best regards, Sergey.


More information about the awt-dev mailing list