This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Query on DialogBox ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Query on DialogBox ??" Watch "Query on DialogBox ??" New topic
Author

Query on DialogBox ??

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi all friends,
I want to show Dialog from swing interface one by one in loop after some work completion i want that first dialog should close automatically when next Dialog pop up.Can any one plz guide me how i can do that.Now Iam showing Dialog through below code:-
JOptionPane.showMessageDialog(jframe,"Work Completed", "Confirmation Message",JOptionPane.INFORMATION_MESSAGE);
Plz help me
Thanks and Regards
Bikash
Chris Shepherd
Ranch Hand

Joined: Jun 27, 2000
Posts: 286
If you are just trying to show progress in a task that is going on, check out the links I posted here about ProgressMonitor and ProgressBar. It lets you change messages as certain events occur in your process. That lets you keep your user informed of whats going on without all the extra self closing dialog boxes it sounds like you are trying to use now.
HTH
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Query on DialogBox ??