Delete comment from: Java-Buddy
You forget to use setOwner like Adobe Air has multiple windows if you close primary window when all second window will exit since your click to primary window. I don't know if JavaFX has setOwned or isOwned from Stage class.
Oct 8, 2016, 11:15:41 AM
Posted to JavaFX example: open new Window and exit all when primary window close