SwingWorker is done() BEFORE publish() called
I'm using SwingWorker to build a list of files found by recusrive searching a directory. As the worker finds the files they are published, using publish(file)
. In my process()
method I add the files to a list model. The problem is if only a few files are found, the SwingWorker is done()
before the publish()
has added the files to the list model.
How can I get SwingWorker to call publish()
first then done()
?
Thanks

