title: Opening FileChooser Dialog
body: <p>this is my first ever Swing project and I barely know anything related to Java and GUI. After struggling with SWT (Eclipse), I decided to switch to Netbeans for Swing app (I don't want to go for netbeans platform atm). so I might nag you guys a bit while my project is going on.</p>
  
  <p>My first question is how can I open a JFileChooser dialog to select a specific directory? That's what I have done:</p>
  
  <p><strong>IN SWING DESIGNER MODE</strong> </p>
  
  <ul>
  <li>Drop text field (made editable false so that user wouldn't input values) </li>
  <li>Drop a button next to it labeled "Browse" </li>
  <li>Now here is the confusion, shall I drop a JFileChooser on the pane? If I do this, then the panel shows Browse dialog all the time ... or shall I create a new JFileChooser on button click event? What is the best practice?</li>
  </ul>
  
  <p><strong>IMPORTANT</strong>
  <em>The question I am asking is not how to use <code>JFileChooser</code>. I am asking how to use it with Swing Designer in Netbeans. When i drop it from the Palette, it is always shown in the designer.</em></p>
  
  <p>P.S:
  After lots of struggle I decided to go with Swing. I was not even willing to go for Java based GUI but I had not choice because Java has better underlying api for the project I am working on and now building a basic GUI sucks!</p>