how to define mouse event in javafx code example Example: mouse handler javafx public final double getY()