title: java swing: Is it possible change color of a specific string variable?
body: <p>From the Question above, I've made a simple windows app similar to MSN and Yahoo Messenger. When a user types a message and hits the "SEND" button, The code below appends the user's name and message to the the textArea:</p>
  
  <pre><code>textArea_ChatLog.append(chatName + "\n" + " " + msgChat + "\n");
  </code></pre>
  
  <p>Which would display in this format:</p>
  
  <pre><code>Username
  Message the user typed.
  </code></pre>
  
  <p>Is there solution to changing the color of "chatName?" The only information I've found pertains to changing the color of entire components (which is what I don't want). </p>