Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding JDialog

 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

How to launch multiple JDialog boxes when i am trying to click on JButton (action event ) in JFrame

Thank you in advance ...
 
Maneesh Godbole
Saloon Keeper
Posts: 11085
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you exactly mean by launching multiple dialogs?
User clicks a button once and sees say 3 dialogs?

The JOptionPane.showXXXDialog creates modal dialogs. So that won't work for the above scenario.
Only way for you to create and display non modal dialog windows yourself, using say, JDialog or JFrame.

By the way why do you want to launch multiple dialogs? It is very bad usability.
Combining the contents of the various dialogs and displaying them in a user friendly manner, in one dialog would be good design.
 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i mean cascading JDialog windows
 
Maneesh Godbole
Saloon Keeper
Posts: 11085
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you got so far?
Did you check the JOptionPane.showXXXDialog methods and JDialog?
 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDialog ..
 
Maneesh Godbole
Saloon Keeper
Posts: 11085
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. So what have you got so far?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic