JavaFX 2.0: Closing a stage (window)
The documentation you linked states that stage.close(): Closes this Stage. This call is equivalent to hide(). As hide() is equivalent to close() and close() closes the stage, then hide() also closes the stage. When all stages in an application are hidden (or closed if you like, because it is the same thing), the application exits. … Read more