wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Regarding JDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Regarding JDialog" Watch "Regarding JDialog" New topic
Author

Regarding JDialog

tadi raja
Ranch Hand

Joined: Jul 07, 2008
Posts: 109
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

Joined: Jul 26, 2007
Posts: 10167
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
tadi raja
Ranch Hand

Joined: Jul 07, 2008
Posts: 109
i mean cascading JDialog windows
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

What have you got so far?
Did you check the JOptionPane.showXXXDialog methods and JDialog?
tadi raja
Ranch Hand

Joined: Jul 07, 2008
Posts: 109
JDialog ..
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Ok. So what have you got so far?
 
 
subject: Regarding JDialog
 
Similar Threads
JFRAME STAY IN FRONT
help me out pls it is urgent..
Poping up a JPanel in JApplet
Modal Frames
JDialog with ClassCastException ?!??!