File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 10384
    
    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: 10384
    
    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: 10384
    
    8

Ok. So what have you got so far?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding JDialog