JavaFX Tutorial - How to cleanly exit the application

preview_player
Показать описание
A JavaFX Tutorial on how to register for the closing event and how to make sure all threads are closed upon exit.
There are several things you need to be aware of when exiting an application.
1) make sure you have a way to dispose of all existing threads cleanly. Often by providing a boolean flag that will terminate the thread.
2) register for the setoncloserequest event and make sure that you call

Рекомендации по теме
Комментарии
Автор

even though the video is 4 years old by now, it's lots of help still.
Thanks for the explanation!

uravggamer
welcome to shbcf.ru