title: Dynamically adding text to a JTextArea using Java
body: <p>I'm trying to add/append text to a <code>JTextArea</code> dynamically. I tried doing:</p>
  
  <pre><code>for(int i=0;i&lt;10;i++){
      jtextArea.append("i="+i);
      //some processing code***********
  }
  </code></pre>
  
  <p>Actually all <code>i</code> values are appending to jtextarea after completion of <code>for</code> loop. But I want to add <code>i</code> value to jtextAres as <code>for</code> loop is progressing. Thanks in advance.</p>