title: JavaFX FileChooser in swing
body: <p>I think everyone can agree that JFileChooser is really poop. So I was looking for an alternative and found out that JavaFX has got a great FileChooser class. So now the obvious question: how can I embed that neat FileChooser into my Swing application?</p>
  
  <p>Needless to say, I did some research before I posted this, and this is what I found so far: <a href="http://www.reddit.com/r/javahelp/comments/2lypn4/trying_to_use_javafxstagefilechooser_in_a_swing/" rel="noreferrer">link to a Reddit post</a>.</p>
  
  <p>The code of that JavaFXFileDialog class is very interesting, but it does not close when I exit my application (JavaFX seems to continue running in the background). Also I am missing some fields I can pass to the FileChooser like the path to set default directory. And I don't like how it is static.</p>
  
  <p>I am grateful for any input.</p>