Java Code:

myNode.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() { public void handle(MouseEvent e) { // All events delivered here have MouseEvent.MOUSE_RELEASED // as event type. } });