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

[486 byte] By [pateqa] at [2007-11-26 21:56:56]
# 1
Sorry, wrong forum
pateqa at 2007-7-10 3:53:50 > top of Java-index,Java Essentials,Java Programming...