Dynamically refresh JTextArea as processing occurs?
- by digiarnie
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?