title: JavaFX 2.0: Closing a stage (window)
body: <p>I'm making a application in JavaFX 2.0. From my main window I am starting a new window with some settings. After I am done adjusting the settings I want to press a button like "Save changes".</p>
  
  <p>I would like this button to save the changes and close the window.
  By closing i mean killing it, not placing it in the background or setting the visibility.
  I've read about a method Stage.close() </p>
  
  <blockquote>
    <p><a href="http://docs.oracle.com/javafx/2.0/api/javafx/stage/Stage.html" rel="noreferrer">http://docs.oracle.com/javafx/2.0/api/javafx/stage/Stage.html</a></p>
  </blockquote>
  
  <p>As you can see it's similar to the method Hide(), which only hides the window, not closing it.</p>
  
  <p>Q: Anybody knows any methods or have some code that would help me close a window?</p>
  
  <p>All help will be greatly appreciated.
  Thanks!</p>