title: JTextArea setWrapStyleWord(true) does not work if appending text
body: <p>According to Oracle at <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextArea.html" rel="nofollow">JTextArea documentation</a>, if you wish to wrap lines <strong>AND</strong> wrap at word boundaries and not character boundaries you must use code as follows:</p>
  
  <pre><code>jtaOutputPrimes.setLineWrap(true);
  jtaOutputPrimes.setWrapStyleWord(true);
  </code></pre>
  
  <p>Please note that the jtaOutputPrimes is the name of my <code>JTextArea</code> on my <code>JPanel</code>.<br>
  The issue comes in when I use the method append to add text to the JTextArea as follows:</p>
  
  <pre><code>jtaOutputPrimes.append(",");
  </code></pre>
  
  <p>In this case, the <code>setWrapStyleWord</code> setting does not work.  It continues to use the character boundaries and not the word boundaries.   </p>
  
  <p>I have found another person experiencing same issue here:  <a href="http://www.velocityreviews.com/forums/t128377-jtextarea-setwrapstyleword.html" rel="nofollow">setWrapStyleWord issue</a></p>
  
  <p>Now, lets say you are running an <code>JApplet</code> that has this <code>JTextArea</code>. If you type in the text area, it will word wrap fine, but any passed text from the append method does not work.  </p>
  
  <p>I believe this is a bug, and I cannot find Oracle acknowledge it as such anywhere.  </p>
  
  <p>Can anyone help? Thanks!</p>