Platform.exit() wäre die bessere Variante 😉Vielen Dank, ich habe den Befehl:
"exitButton.setOnAction(e -> System.exit(1));"
genutzt und es funktioniert. Ich drücke den Exit Button und er beendet es 🙂
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Platform.exit() wäre die bessere Variante 😉Vielen Dank, ich habe den Befehl:
"exitButton.setOnAction(e -> System.exit(1));"
genutzt und es funktioniert. Ich drücke den Exit Button und er beendet es 🙂
The JavaFX runtime does the following, in order, whenever an application is launched:
- Constructs an instance of the specified Application class
- Calls the init() method
- Calls the start(javafx.stage.Stage) method
- Waits for the application to finish, which happens when either of the following occur:
- the application calls Platform.exit()
- the last window has been closed and the implicitExit attribute on Platform is true
- Calls the stop() method
Platform.exit() wäre die bessere Variante 😉