title: How to create a modal window in JavaFX 2.1
body: <p>I can't figure out how to create a modal window in JavaFX. Basically I have file chooser and I want to ask the user a question when they select a file. I need this information in order to parse the file, so the execution needs to wait for the answer.</p>
  
  <p>I've seen <a href="https://stackoverflow.com/questions/10008377/javafx-2-modal-window">this question</a> but I've not been able to find out how to implement this behavior.  </p>