-
Notifications
You must be signed in to change notification settings - Fork 1
DevFaqMainwindowClosingAction
When you click the close button in the top right corner the application closes. If you want to do something before the application closes (e.g. show a dialog with OK and Cancel options) or prevent it from closing, this is possible.
Make a class in your module that extends org.openide.modules.ModuleInstall
. There is a Module Installer template that will create this class for you.
Override the closing
method and insert your special logic.
If you return false
the application will not exit.
The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqMainwindowClosingAction , that was last modified by NetBeans user Admin on 2009-11-06T15:52:58Z.
NOTE: This document was automatically converted to the AsciiDoc format on 2018-01-26, and needs to be reviewed.
Apache NetBeans is an effort undergoing incubation at The Apache Software Foundation (ASF).
Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
This wiki is an experiment pending Apache NetBeans Community approval.