2

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

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Anuradha
  • 107
  • 1
  • 2
  • 11
  • 2
    1) 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 Answers2

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)

5) more examples

mKorbel
  • 109,525
  • 20
  • 134
  • 319
0

Center using the parent container of the two frames?

d33j
  • 434
  • 3
  • 9