Dynamically refresh JTextArea as processing occurs?
Posted
by digiarnie
on Stack Overflow
See other posts from Stack Overflow
or by digiarnie
Published on 2009-03-10T08:23:21Z
Indexed on
2010/05/11
11:34 UTC
Read the original article
Hit count: 255
I am trying to create a very simple Swing UI that logs information onto the screen via a JTextArea as processing occurs in the background. When the user clicks a button, I want each call to:
textArea.append(someString + "\n");
to immediately show up in the UI.
At the moment, the JTextArea does not show all log information until the processing has completed after clicking the button. How can I get it to refresh dynamically?
© Stack Overflow or respective owner