my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JOptionPane
 
Similar Threads
JFrame
File listing using swings....
swings and eventhandeling
Popup menu
Scott Adams' depiction of IIT grads