This is a test bed for a public API of JavaFX's robot classes. These classes are for purposes of test automation, self running demos and other applications where control of the mouse and keyboard is needed.
Note: This API is unstable and subject to change. The code is currently intended
for JDK 1.8.0_65, this will change to JDK 1.9 eventually.
Glass robot:
com.sun.glass.ui.Robotcom.sun.glass.ui.Pixelscom.sun.glass.ui.Application::createRobot()com.sun.glass.ui.Application::createPixels()
Scene robot:
com.sun.javafx.robot.FXRobotcom.sun.javafx.robot.FXRobotFactorycom.sun.javafx.robot.FXRobotImage
- The robots should be placed into
javafx.robot? - The robots should be named
InputRobot(com.sun.glass) andEventRobot(com.sun.javafx)? - Use a separate class for
Imagedata and pixelBuffers? - Robot interfaces should match
FXRobotas close as possible? - Use
ints for coordinates and dimensions? - Add flag for wait-for-idle functionality?
- Factory methods in
javafx.application.Applicationor separate factory classes?
OpenJDK and OpenJFX are licensed under the GNU General Public License, version 2, with the Classpath Exception.