SyntaxFix
Write A Post
Hire A Developer
Questions
This seemed to work for me:
EventHandler<ActionEvent> quitHandler = quitEvent -> { System.exit(0); }; // Set the handler on the Start/Resume button quit.setOnAction(quitHandler);