Java Platform Runlater terus berjalan

"To prevent this from happening, add this line before Platform.runLater"

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