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 JTextPane.
This is an example of my append:
buildSomething.append("<b style="color:pink">"+Birthday+"</span>");
Is there something I'm doing severely wrong? And how do I go about fixit it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…