title: How can I have a download file option in JAVA Swing?
body: <p>I am new to Swing and wish to implement the download file feature in my Swing code, that would allow the user to either save or open the specific file.</p>
  
  <p>I did have a look at JFileChooser.showOpenDialog and showSaveDialog, but I don't wish to use it, as it gives me the option to choose any file from the file system. </p>
  
  <p>Hope my problem is clear. Please help me with this.</p>