convert action event to mouse event javafx code example Example: mouse handler javafx public final double getY()