How to make the window just disappear when you click on the button?
the application will require one and only one instance of this window, change the value of the
defaultCloseOperationproperty toHIDE(that is, by clicking on the close button of the window it should just hide).
This is for Swing how to do this for JavaFX.