title: How do I select a folder to save a file to in Jython using JFileChooser
body: <p>I'm trying to use JFileChooser to select a folder to save a file to in Jython, but I'm not quite sure how to go about it.</p>
  
  <p>The only example I've found so far was at this site: <a href="http://zetcode.com/gui/jythonswing/dialogs/" rel="nofollow noreferrer">http://zetcode.com/gui/jythonswing/dialogs/</a>, but its not really what I'm looking for.</p>
  
  <p>I'm hoping to have just the file selection dialog open (the examples requires an awkward button press to activate the file dialog). I would also like to get the current directory of the selected folder instead of the filepath of a file.</p>