What's the difference between a JEditorPane and a JTextPane?

Thomas Buck

JEditorPane supports display/editing of HTML and RTF content and can be extended by creating your own EditorKit(s) to support your needs.

JTextPane is an extension of JEditorPane which provides word processing features like fonts, text styles, colors, etc. If you need to do heavy-duty text processing, this is the class you'll need.