title: How To Create A Console With JTextPane
body: <p>I tried making a console in a JTextArea that took a string called 'text' and everytime the user did something that I wanted logged in the console, 'text' would be assigned different text (that had to include all the text from before). Then I would just go and add that string to the JTextArea with: <em>console.setText(text);</em></p>
  
  <p>I read around and found that if you use JTextPane instead of JTextArea, you can change the colors of the text (which would be nice to do), so I tried implementing that into my code, but it was WAY to difficult passing around that one string to different methods and having to constantly change all the others (damn strings). It doesn't help that the JTextArea can only display one thing with the <em>.setText()</em>. </p>
  
  <p><strong>What would be the simplest option to create a working console with JTextPane? Are there any other libraries I can add that might make this easier?</strong></p>
  
  <p>(I also read around about some code to take "System.out.println()" statements and sent that to their console view instead of the IDE's console. I'm guessing that makes adding text easier right?)</p>