title: change specific text color in java
body: <p>i am wondering how can i change a specific text color in a sentence? </p>
  
  <p>lets say HELLO WORLD...i wanted to change the WORLD into red color without altering the font color of HELLO..same exact thing on how to change the WORLD in to bold</p>
  
  <p>i wanted to set these string in to a jtextarea but all i can find is something like this</p>
  
  <pre><code>JTextArea textbox = new JTextArea("hello world");
  textbox.setForeground(Color.red)
  </code></pre>
  
  <p>these makes the whole sentence into red instead of only making WORLD into red?</p>