Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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...
I agree. Here's the link:
subject: JOptionPane
It's not a secret anymore!