dustinkredmond / FXTrayIcon

Tray Icon implementation for JavaFX applications. Say goodbye to using AWT's SystemTray icon, instead use a JavaFX Tray Icon.
MIT License
327 stars 26 forks source link

wont stop as a user thread keeps alive #11

Closed littleboyonearth closed 3 years ago

littleboyonearth commented 3 years ago

image

the new thread is not a daemon thread, so it will prevent the application from exiting

dustinkredmond commented 3 years ago

@littleboyonearth In the latest version of FXTrayIcon, we do not use this Thread anymore. The check is instead done by invoking EventQueue.invokeLater() this way we can check on that particular thread, so there's no timing issue.

Please update your fork/clone to the latest version (2.7.2 as of time of writing). Thanks!