parent JFrame can kill the child (JDialog)?
Hi,
-
|One toggle button
|
|_
JFrame has one toggle button.
When user press the toggle button, JDialog popups,
and (what I want to do is) when user press the toggle again,
JDialog killed. not just setvisible (false) ==> which goes behind the
JFrame.
How do I do that? Let me know asap. Thanks -
Message was edited by:
PaulSheldonII_Screen
Message was edited by:
PaulSheldonII_Screen
yes, I did try aJDialog.dispose();even, aJDialog = null; not only,aJDialog.setVisible(false); But, it still alive behind the JFrame.
dispose() should work.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the code retains its original formatting.
Thanks, camickr
But, your answer has been identical without any sinlge
letter different from before the question I asked previously.
You have no obligation to answer it if you don't want to,
instead of copying the answer you made identical cut and paste,
not only me but also any other posting.
But, thanks for your persistent guidance when there is
no obligation to answer.