August 14th, 2011, 12:38 PM
I should've tried this before, but after completely removing setProgress(), everything works fine.
So I then moved the setProgress out of the inner for loop so it just checks with the width to...
August 14th, 2011, 12:02 PM
Yeah.... From what I can see.... I think setProgress(100 or 101) calls done() for some reason... I think thats at least one of my problems.... The math.min helped a little too...
August 13th, 2011, 09:32 PM
This is from the SSCE:
Dimensions: 200, 198 (and down)
August 13th, 2011, 09:27 PM
I really appreciate the help. Sorry if I'm being dense
August 13th, 2011, 09:26 PM
I'm sorry, I really wish I could understand whats going on. Are you implying that there is something going wrong when I calculate the progress? Like imprecision between ints and doubles?
August 12th, 2011, 09:01 PM
I might just try using a single dimension int instead of the two dimensional and see if that gets me anywhere...
August 12th, 2011, 08:52 PM
I get more weird output when I set WIDTH = 100 or 150 with HEIGHT = 200
Task only reports 50% and 75% respectively....
Im going to check the debugger with these cases....
August 12th, 2011, 08:51 PM
Sorry for sounding cross, I just see absolutely no reason why this should happen...
August 12th, 2011, 08:46 PM
Heres an SSCCE though it may not be the simplest.
You may need to run it to see what I mean.
August 12th, 2011, 03:13 PM
post on top of page seems to have a similar problem.... BUT THE THREAD WAS LOCKED GODDAMNIT!
August 12th, 2011, 03:09 PM
Even using the solution at the bottom of this page doesn't help:
This bug is so freaking weird! There seems to be a pattern to it, BUT...
August 12th, 2011, 02:54 PM
It seems as though it never hits the return statement for the doInBackground() method and goes straight to done() even though its not canceled whatsoever (isCanceled() == false)
WHY WOULD IT DO...
August 12th, 2011, 02:47 PM
I have a SwingWorker which generates an int into a variable local to the SwingWorker object in its doInBackground() method.
The done() method then assigns that int to another variable.