title: displaying a styled content in a JTextArea
body: <p>I was wondering if there is a way to style text in a JTextArea;</p>
  
  <p><strong>i have to insert lines of text that each one contains segments that might have different styles and type of content; type of content would determine the actions available to the segment they are related to.</strong></p>
  
  <ul>
  <li>I examined JTextPane and JEditorPane and found them too complicated, slower and less adapted to my needs.
  the best solution I came up with was to extend the BasicTextUI and the PlainDocument classes.</li>
  </ul>
  
  <p>could it be done another way? any advice to enhance the performance  ?
  thank you.</p>