Swing Java Tutorial

The JTextPane is a specialized form of the JEditorPane
designed especially for the editing (and display) of styled text.