Show background process status in JTextArea
问题 Is there any way to write text in JTextArea about background process. I have one button on screen. When user click on that button, some process is started. I want to show ongoing status of that process on screen which is in Text area. After doing textArea.append("Some status") I use to call textArea.repaint() but this not work for me. Should I need to implement my own Thread for this? 回答1: You simply can use a SwingWorker, where you really doesn't have to worry about performing the periodic