Thread for ProgressBar  
Author Message
cybernerdsx2





PostPosted: 2004-4-1 16:57:00 Top

java-programmer, Thread for ProgressBar Hi all,

I have a question on threading for the progressbar.

My program will call a few methods and those methods are really time
consuming, the time it takes all depends on how much information are
being pump in, sometimes it can be less than half a minute, sometimes
it can go up to few minutes. So determining the percentage of the
progressbar is impossible.

So how do I find out the total length of the process so that I can
update the progressbar's percentage accordingly?
 
ak





PostPosted: 2004-4-10 0:54:00 Top

java-programmer >> Thread for ProgressBar > My program will call a few methods and those methods are really time
> consuming, the time it takes all depends on how much information are
> being pump in, sometimes it can be less than half a minute, sometimes
> it can go up to few minutes. So determining the percentage of the
> progressbar is impossible.
>
> So how do I find out the total length of the process so that I can
> update the progressbar's percentage accordingly?

you cant.
but if you have "few methods" you can decide how much percent take every
method and after method returns update progressbar.

____________

http://reader.imagero.com the best java image reader.