title: Styling text in a JTextArea or JTextPane
body: <p>Basically, I have a JTextPane to hold some text which I wish to style. JTextArea would have been better for me to use but I'm told you cannot style the text in these?</p>
  
  <p>However, the JTextPane doesn't seem to style properly. For example, the following code is just returned with the HTML included:</p>
  
  <pre><code>public static void main(String[] args) {
      JFrame j = new JFrame("Hello!");
      j.setSize(200,200);
      JTextPane k = new JTextPane();
      k.setText("&lt;html&gt;&lt;strong&gt;Hey!&lt;/strong&gt;&lt;/html&gt;");
      j.add(k);
      j.setVisible(true);
  }
  </code></pre>
  
  <p>I want to be able to just style some text in a JTextPane when a user interacts with the interface, but so far, it just returns the string with the HTML still in! Help!</p>