title: Java - Swing setting colour to text in JTextArea
body: <p>I have a JTextArea which has its text set to a string of information. In this string of information I have a variable which I would like coloured red, to do this I edit the string as follows:</p>
  
  <pre><code>"Result: &lt;html&gt;&lt;font color=red&gt;" + negativeValue + "&lt;/font&gt;&lt;/html&gt;"
  </code></pre>
  
  <p>I would expect this to give Result: ## where the number is red. However it just puts the following into the text area:</p>
  
  <pre><code>Result: &lt;html&gt;&lt;font color=red&gt;##&lt;/font&gt;&lt;/html&gt;
  </code></pre>
  
  <p>I'm not really sure how to get this working, so could someone offer advice as to how to do so?</p>