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
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 [?]
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 dkrukovskyJuly 26, 2007 5:35 AM
in java swing threads servlet computer jprogressbar development programming network
- Reply
Blogoforum -
del.icio.us