sign in | register

Blogoforum Blogoforum - Dynamic JProgressBar

recent > programming > java > computer > swing > development

Dear Experts,

I have created Applet-Servlet Communication Application, where I am trying to save the data via servlet and in return it sending boolean value to the applet.

So, I would like to implement a JProgressBar, which may display at the time of data saving and the value of JProgressBar increase as the boolean value returns from servlet.

Here I need your help, that if any one have an example (either in Applet or Swing Application) of JProgressBar, which may increase bar value upto 10% via Thread notify()method on the boolean value returns in true and after increasing upto 10% get the Thread wait() for the next boolean value returns in true.

I hope you will be understanding the problem, if still have any confusion, or any other ideal to take care of this problem then I am looking forward to you.

Thanking you in advance

Regards,

M.A.Bamboat
by bamboat_3
July 26, 2007 2:57 AM
+ add to your Readings [?]
- Reply

Keep within networking layer

I would to keep dealing with wait() / notify() within layer responsible for network communications.

From that layer, you can fire stateChanged() or any other event on JProgressBar making it grow. Wrapped within invokeLater() or what suits you.

by dkrukovsky
July 26, 2007 5:35 AM
in
- Reply
wrong? assign your keywords [?]
Google

Explore Blogoforum - The Better Forum Experiment

Blogoforum is looking for UI Designer.

Tell the World

Blogoforum will become more useful as its user base grows. If you think the idea is interesting, bookmark it on del.icio.us and tell your friends.