I\'m using string builders to append text to my JTextPane, I\'ve set content type as pane.setContentType(\"text/html\"); but the no text actually appears on my
Every time JTextPane.setText(...) is called a new content type is determined. Start the text with "" and you've got HTML.
A new document is created, in your case HTMLDocument.
@mKorbel: the following creates every time HTML for the JTextPane.
buildSomething.append("");
buildSomething1.append("");
for (int i = 0; i < 10; i++) {
buildSomething.append("" + myBirthday + "");
buildSomething1.append("" + myBirthday + "");
}