I have a start and stop button. I want to be able to start and stop the task as many times as the user wants. I was able to work normally with a regular thread by doing wait () when the stop button was pressed, and then notifying () when the start button was pressed to start the stream again. It did a great job. However ... I held out the stream. My boss told me to never expand the thread, and that I should use SwingWorker. But I noticed that SwingWorker can only be executed once. Or can it be executed more than once in the same session .. ?? Can someone help me in the right direction?
Biggs source share