Platform.setImplicitExit(false); Platform.runLater(()->System.out.println("Inside Platform.runLater()"));