title: java - How would I dynamically add swing component to gui on click?
body: <p>What I am looking to do is a similar principle to adding attachments to emails, you can click a button and a new browse box would open increasing the number of separate attachments you can have.</p>
  
  <p>I'm fairly new so if someone could point me towards an example?</p>