This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Probably a pretty trivial issue but my last Swing project is some time ago... I have a test applcation using a JTextArea for the test output. I want to clear the area each time whena new test is carried out by pressing the Test button.
This Test button has an ActonListener and calls the test code and shows the result in the area. But as expected, the test area does not clear when the test runs (this can take several seconds) because the EDT blocks GUI update while running.
What is the best way to handle this? Calling the test code from an invokeLater thread?
"What you don't know, can't help you"
SCJP (81%), SCWCD (81%), SCJD (354/400), SCBCD (85%)