I have downloaded the following Class from the net, its just displaying a progressbar while a task is running, I need to dispose the whole Class when the task is finished automatically?, this code is downloaded from a Demo website and mostly the programmer decide the way his application runs, and I do see so many applications which displays a progressBar while something is running and then it disappears automatically, and adding dispose() after line 53 does not help, it disposes the JFrame immediately!!
Please remind yourself how the code button works. I have corrected it for you just this once and doesn&apost it look better
Please always tell us where such code comes from, to reduce copyright problems and to allow us to assess the original.
It is unusua to dispose a GUI programmatically as you are suggesting. You can try adding a dispose() call after line 53. It is normal to get the user to clck the close button..
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
ScroogeXHTML - small and flexible RTF to HTML converter library