SwingWorker: when exactly is called done method?
Javadoc of the done() method of SwingWorker: Executed on the Event Dispatch Thread after the doInBackground method is finished. I've clues that it is not true in the case of canceled worker. Done is called in each case (normal termination or cancellation) but when cancelled it is not enqueued to the EDT, as it happens for normal termination. Is there some more precise analisis on when done is called in the case that a SwingWorker is cancelled? Clarification: this question is NOT on how to cancel a SwingWorker . Here it is assumed that the SwingWorker is cancelled in the right way. And it is