<AWT Dev> Robot.mouseMove() in macOS Mojave

Kustaa Nyholm kustaa.nyholm at sparetimelabs.com
Thu Apr 4 06:35:35 UTC 2019


I've got an application where zooming with the scroll wheel on the mouse will also center the mouse on the screen (well window actually).
This has worked since day one for some 15 years.

The mouse centring is implemented with Robot.mouseMove() method.

This morning I received a message from a beta tester that my latest build fails to center the cursor on macOS Mojave.

I've not investigated this further except to check that it works for me on High Sierra.

So I'm canvassing here to see if this is a known issue or information to the contrary.

The application is packaged into a macOS .app with 'jpackage' from jdk-13 and the embedded JVM/JDK/JRE is:

JVM-Version     11.0.1+13
JVM-Vendor	Oracle Corporation
JVM-Name	OpenJDK 64-Bit Server VM          

cheers Kusti

More information about the awt-dev mailing list