This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Query on DialogBox ??  RSS feed

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!