I have a start and stop button. I was told that I must use a SwingWorker. The code that I have now works fine. I start it and I stop it. But what if i want to start it again..? I am reading that the doinBackground method will only be executed once. Is there a way to fire it off again..??
Right now I cannot create a new instance of that Swing Worker because in my Swing Worker I have a while loop that says while(isSet) which is set to True when I click on the Start Button and set to False when I click on the stop button.
Is there a way around this..??
Thanks