The instance of the JEditorPane component can now recognize any HTML tag present in its model (text). For example, if the text is This is Bold, the JEditorPane will display This is Bold. Similarly, if ...
This assumes you want to preserve some sort of containing frame. If not, only paint the region that interests you to make visible text. Now that I think about it, I believe either one of the default ...