set mouse click on javafx scene code example Example: mouse handler javafx public final double getY()