1 Reply Latest reply: Mar 16, 2007 4:02 PM by 807606 RSS

    SwingWorker is done() BEFORE publish() called

    807606
      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