This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane" Watch "JOptionPane" New topic
Author

JOptionPane

remi vandana
Greenhorn

Joined: Aug 24, 2001
Posts: 6
hi,
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 :

Tom.
P.S. : What happened to your vowels? Your message was hardly readable...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JOptionPane