This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Re; Problem solved
Posted by Gautham Kasinath on July 14, 2000 at 7:00 AM
Hi! Well I guess I have a soln for u.
i tried de same with my task.. what i did was someting like urs n I had de same prob dat de repaint was done only after de dnlding was complete.. to do it side by side I put my applet ( gui ) to show de dnld status in a seperate thread and the main dnlding process into anoder.. it works dat way.
Plz try de same n getbak 2 me.
> I'm developing one application, in which when I start downloading
> the information, I want to show its status to user to indicate the
> amount of downloading finished. But I'm facing the problem.
> Here is what I had done :-
> Before I start downloading I starts the thread which is Frame
> and in that I'm displaying JLabel which should update status of
> downloading.I will update this JLabel in the loop as the one after
> one productsInformation is downloaded.
> After thread has been started, I will start downloading proudctsInfo
> in my main thread. But strange thing is that my spawned thread,
> doesn't update the status of downloading. In fact, it doesn't get
> repainted until all downloading is finished. Once it is finished, it
> displays the Frame that was spawned from the main Application.
> Can anybody please guide me in ths ?
> Any code sample will be most appericated .