I have a use case in which I want to display a progress bar indicating the downloaded number of bytes. I decided to go for ProgressMonitor since it gives me options to cancel the download, and also to periodically display the bytes downloaded.
But I read in the java doc of ProgressMonitor that the progress bar doesnt always show up. I tried setting setMillisToPopup(0) and also setMillisToDecideToPopup(0). Currently, I am seeing that if the download does not take a long time, then the progress bar doesnt show up, inspite of setting both setMillisToDecideToPopup and setMillisToPopup to 0 milliseconds. Is this expected behavior?
Also, is this a right use case to use ProgressMonitor? Can someone please guide me in this?
Did you go through the link I had provided to figure out how to fix the threading issue?
Joined: May 24, 2008
Yes, I did... actually, I have a constraint of using java 5.0 only... and the link seems to talk about threads with respect to progress bars only, and not progress monitor, so, I guess I am on wrong track.