RTFEditorKit
Note: Most of the Swing API is not thread safe. For details, see Concurrency in Swing, a section in The Java Tutorial.
HTMLEditorKit