@FXML private void handleInstructionsAction(ActionEvent event) { instructions(); Stage owner = (Stage) ((Node) event.getSource()).getScene().getWindow(); Dialog.showInfo( "ΟΔΗΓΙΕΣ ΠΑΙΧΝΙΔΙΟΥ!", instructionsText, owner, new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent t) { // Keep running } }); }