You should be able to use the editorKit that is being used with that JEditorPane to edit the content of the pane.

For an HTMLEditorKit, you can use the insertHTML() method to insert HTML code into...