title: Underline StyleConstant in a different colour with AttributeSet
body: <p>I am implementing a spellchecker and wondered if there is an easy/obvious way of underlining some text in a different colour such as Red. </p>
  
  <p>I have everything set up and underlining with the following code (also sets the color of the text):</p>
  
  <pre><code>private AttributeSet getAttributeSet(Color foregroundColor) {
      SimpleAttributeSet attrs = new SimpleAttributeSet();
      StyleConstants.setForeground(attrs, foregroundColor);
      StyleConstants.setUnderline(attrs, true);
  }
  </code></pre>
  
  <p>The above code sets the word to blue but also underlines it in blue. I need to be able to change the underline and also its thickness. Any ideas?</p>
  
  <p>Thanks,</p>