116117118119120121122123124125
public void close() { final Stage stage = undecorator.getStage(); Platform.runLater(new Runnable() { @Override public void run() { stage.fireEvent(new WindowEvent(stage, WindowEvent.WINDOW_CLOSE_REQUEST)); } }); }