want to horizontally and vertically align my JTextPane's content. I found a good tutorial here, it works very well: http://java-sl.com/tip_center_vertically.html
However if I want to embed HTML code, e.g.
doc.insertString(0,"<html> some text <b> bold text </b> </html>", attrs)
The text won't be rendered as HTML, instead it is treated as simple text.
Some ideas on how to solve this?