Placing a html text in a standard text file didn't work for me when I viewed it in a web browser. It simply showed the html code in the text file.
I did, however, get the JEditorPane to work with it. A BufferedReader reads lines from a text document with html code into a StringBuffer. Each appended line gets the "<br>" statement added on.
The StringBuffer.toString() method is then used to set the JEditorPane's text to the StringBuffer's contents.
The JEditorPane (after using the setContentType("text/html") method) shows the HTML code output successfully.
Thanks for your help!