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=\"…
When I try to change color of a JTextArea using
textArea.setText("<html> <font color=\"red\"> Hi </font></html>")
, the text is shown is basically the whole text written inside setText method. …
Basically, I have a JTextPane to hold some text which I wish to style. JTextArea would have been better for me to use but I'm told you cannot style the text in these?
However, the JTextPane doesn't seem to style …