JEditorPane
,
which has been initialized with HTML text from a URL.
As you can see,
an editor pane can handle images
and styled text:
italic,
bold,
small, and
large.
An editor pane uses specialized editor kits to read, write, display, and edit text of different formats. The Swing text package includes editor kits for plain text, HTML, and a custom text format. You can also develop custom editor kits for other formats.