Use a JTextPane bean to provide a pane for editing text with visible styles and embedded objects.
You should not use a JTextPane 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