I have two Java programs (client and server) which worked perfect for years until I upgraded to java 1.7.
Now I have the following killer problem with SwingWorker: the done()
function is called very late (30-90 seconds) after returning from doInBackground()
. I put a println just before the return from doInBackground()
and it is shown all the time. The println at the beginning of done()
is called very late.
This never happens if I run the programs from Netbeans IDE, only when I run them from command line or by clicking the .jar file (I'm in Windows XP - but happens on other OS's too). Also, never happens with Java 1.6 or earlier.
I am using SwingWorker.jar version 1.2.