Using SwingWorker to update the progress of a thread from another class
问题 Value is updated by the end, but not during the process. I guess the reason is that the publish method locates outside the loop. As to invoke PropertyChangeListener , can it be achieved by defining the class without extends SwingWorker<Void, Void> ? To address the question in another way, I have two threads locate in two different classes. Is it possible to build communication between the two using SwingWorker ? Class Application import javax.swing.JFrame; public class Application { public