title: Swing change text of JLabel inside ActionListener
body: <p>When a button is clicked, it should download certain files, and every time it downloads one, it should update a JLabel to something like &quot;downloading... 2/5&quot;. It does not do this, and the frame does not change until the ActionListener is finished.</p>
  <p>Based on what I've researched, it seems like the problem is with the event dispatch thread, and the setText requests are queued somewhere without being executed. Is this true? How can I fix this?</p>