Use a JEditorPane bean for editing defined text types, such as HTML.
You should not use a JEditorPane bean with AWT components. Although Swing and AWT beans can be mixed, it is inadvisable.
Adding a Pane or Panel
Pane and Panel Beans
Beans for Visual Composition