title: How to get directory path using JFileChooser?
body: <p>I have a small java GUI application with a text field on it.  When the user clicks the text field an event is triggered and the JFileChooser is launched.  It's restricted to directories only.</p>
  
  <p>What I'm trying to do is to get the full path of the directory that was chosen and put it in the text field.</p>
  
  <p>I have no idea how to do this, I've searched through a ton of java tutorials and documentations and I can't find an answer.   Can someone help me?</p>
  
  <p>To clarify:  I want to get the full path as a string and put it in the text field, overwriting anything that was there before.</p>