I need a progressbar in between two jframes;ie while navigating from one jframe to other the progress of loading that frame must shown in a progressbar.It should also show a message like 'Please wait....'.Please help
Asked
Active
Viewed 1,022 times
2
-
21) You've [already](http://stackoverflow.com/questions/10084884/to-set-delay-on-a-button-click-in-java) been advised to use `JProgressBar` and been given some links as to how to use it with `SwingWorker`/`Timer`. What is the specific problem? [What have you tried?](http://www.whathaveyoutried.com/) I mean *besides* effectively asking random strangers on the internet to do it for you. 2) Please use the simple decency to make your post easy to read by using correct caps. for J2SE class names or alternately using the generic name. That would be ***`JFrame` or frame.*** – Andrew Thompson Apr 11 '12 at 07:44
2 Answers
4
1) don't use two JFrames, use JDialog instead of...,
2) better woudl be use CardLayout rather than bunch of JFrames
or JDialogs
3) you have to look at JProgressBar (example in the tutorial)
4) invoke the code about processes in JProgresBar
from SwingWorker (example in the tutorial)

mKorbel
- 109,525
- 20
- 134
- 319
-
For more on point 1 see [The Use of Multiple JFrames, Good/Bad Practice?](http://stackoverflow.com/a/9554657/418556). – Andrew Thompson Apr 11 '12 at 07:37