I\'m having a problem with closing my application because some threads are still running after I close the application. Somebody can help me with some method to stop all Th
Better way to fix this is add the EventHandler on Close Request:
@Override public void start(Stage primaryStage) { primaryStage.setOnCloseRequest(new EventHandler() { @Override public void handle(WindowEvent e) { Platform.exit(); System.exit(0); } }); }