title: Using JFileChosser or FileDialog to generate save dialog window
body: <p>I am working on Jasper Report. I need to ask from a user where to save the generated report. For that, I need to open a "Save As" dialog box. I tried it using <code>JFileChooser</code> and <code>FileDialog</code>. </p>
  
  <p>But, during execution of my code, when execution reaches the point where the code for the Save As dialog box is written, the code remains stuck there. One thing I noticed is that if you run the <code>JFileChooser</code> and <code>FileDialog</code> code for an open dialog box in a separate java class with its own PSVM, it works well. </p>
  
  <p>But when it is invoked by some other function, execution remain stuck there. </p>
  
  <p>Is there any plugin or jar I need to add to use JFileChooser and FileDialog? Or something else I am missing?</p>
  
  <p>I am using eclipse Java EE kepler and Spring MVC.</p>