title: Dynamically refresh JTextArea as processing occurs?
body: <p>I am trying to create a very simple Swing UI that logs information onto the screen via a JTextArea as processing occurs in the background.  When the user clicks a button, I want each call to:</p>
  
  <pre><code>textArea.append(someString + "\n");
  </code></pre>
  
  <p>to immediately show up in the UI.</p>
  
  <p>At the moment, the JTextArea does not show all log information until the processing has completed after clicking the button. How can I get it to refresh dynamically?</p>