The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

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:

may be calling on frame object-not dlg object

Posted by Venkata Nukala on September 21, 2000 at 1:33 PM

If your JDialog object is called dlg
call dlg.setVisible(false) in actionPerformed method.
You can also call dlg.dispose() if you you dont need to
activate the dialog again
hope this helps
Venkat


> I invoke a dialog box from a frmae through WindowClosing Event whenever user tries to close frame a dialog box appears ask for confirmation.i.e whether u want to quit or not ...
> if user press yes program is terminated nif user press no i want that dialog to be invisible not parent frame but as i write setVisible(false) in dialog box code when no button is present it applicable to whole frame i.e parent Frame become inactive.

> pls help me.
> how to deactivate dialog box without deactivating parent frame when dialog box is activated through windowclosing method of






Replies:

Sponsored Links



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