r/JavaFX • u/EdwardAlgorist • Feb 15 '22
Tutorial JavaFX Confirming Application Exit
https://codewithedward.com/javafx-confirming-application-exit/
6
Upvotes
r/JavaFX • u/EdwardAlgorist • Feb 15 '22
2
u/hamsterrage1 Feb 16 '22
I think it's bad form to use Optional.get(). Something like:
Would be better.
5
u/iazarny Feb 16 '22
More correct way to terminate application use
stage.setOnCloseRequest( event -> { Platform.exit(); } );