Im having a problem displaying text in JTextPane. I want to be able to append text (e.g. "Task 1 completed..") after a task is completed. But mine display the text once all the tasks are completed which is quite useless as user does not know what is going on. I know this has something to do with thread n stuff.. but im not quite sure.. any help is greatly appreciated..