append() a string in TextArea vs. insertString on a Document in JTextPane
I was using append() in TextArea to display some messages. Then I changed it to JTextPane and use insertString with the Document because I need to have some messages in color.The messages came out all right. But they won't get displayed on the fly.
Can I make it display just like the behavior from the append() function with the TextArea?

