File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane" Watch "JOptionPane" New topic


remi vandana

Joined: Aug 24, 2001
Posts: 6
i hv invoked a JOptionPane frm a JInternalFrame.
I want tht if i clk on "Yes" optn thn it shd pop up a SavedialogBox wch is running properly.
But if i clk on "NO" optn thn i want tht JInternalFrame to get disposed and simiulatneously ths JOptionpane too.
how to do?
I hv to clk on ths "NO" opt as many times as the lenght of the documnet inside the JInternalframe to dispose it.
Same is happening whn i clk on "CLOSE".
pl. reply asap
Tom Diamond
Ranch Hand

Joined: May 10, 2001
Posts: 98
If I understood properly you want to close the JInternalFrame if "NO" is selected in the JOptionPane.
Try this :

P.S. : What happened to your vowels? Your message was hardly readable...
It is sorta covered in the JavaRanch Style Guide.
subject: JOptionPane