title: Adding multiple files with JFileChooser
body: <p>I'm looking to make an application that allows you to attach files from your computer. For example, when the JFileChooser opens you have the option to select multiple files and when you click "add" it adds it to the window and you can then have different for what you want to do with those files. Similar to attaching files in an email. All the code I have to show is the JFileChooser because I figure I should learn how to do this before I go any further.</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>import javax.swing.JFileChooser;
  import java.io.File;
  
  public class Locket {
  
  public static void main(String[] args) 
  {
      JFileChooser chooser = new JFileChooser();
      File f = new File("Desktop");
      chooser.setCurrentDirectory(f);
  
      chooser.showOpenDialog(null);
  
  }
  </code></pre>
  
  <p>}</p>