how ro calculate time remaining for the jprogressbar to complete 100%?
807580Feb 5 2010 — edited Feb 5 2010Sir i want to know that how to calculate time remaining directly from jprogressbar like windows xp has.
I am creating a copy file method in that i able to copy all the files and also the jprogressbar monitors the process well.
But i also wan't time remaining to be appear below the jprogressbar.
So i need a logic for calculating time remaining.
i have search in the google the logic was
time remaining = timediff * bytescopied / size;
but it doesn't give me exact time remaining output and also the time goes faster it doesn't wait for one second then another second and so on.
Plz help me with any idea's of your's.