The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

disposing a Fame....

Posted by raju on January 10, 2001 at 3:11 AM

Dialog Box (for opening a new file in an Editor) consists of three Buttons "Yes", "No", "Cancel".
When Button "No" is pressed case 'N'(written below) will be executed in switch-case Block Statement. The Logic is such that the Dialog box should disappear with the Parent Frame(which is already opened) & a new Parent Frame will be created.But the parent Frame is not disappering where as a new Parent Frame is opening properly.

case 'N':
dispose() // for disposing the Dialog box
wp.dispose(); // for disposing the parent Frame(wp is the object of that parent Frame Class)
Writepad.main(par); //calling the main method of the
parent Frame class
break;

Please help me in this regard, what is the wrong with this code.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us