title: Download a file while also updating a JProgressBar
body: <p>I have tried tones of different methods to get this to work but they either don't work with a progress bar or don't work the way I would like it to.</p>
  
  <p>I have already created a new window with a progress bar and need to create a method which would allow me to download a file while also updating a <code>JProgressBar</code>. There is an Apache Commons method that is extremely easy to use for downloading files but it doesn't seem to be compatible with <code>JProgressBar</code>'s.</p>
  
  <p>I have also had trouble when running this in another thread, <code>SwingUtilities.invokeLater</code> doesn't seem to update to progress bar, but it does run as I can get it to print to the console. I have even tried the <code>progressBar.repaint()</code> method.</p>
  
  <p>So what I would like is a method that can download a file while also updating a <code>JProgressBar</code> to reflect the status of the download.</p>
  
  <p>Thanks in advance!
  Keir</p>