This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Wizard doesn't close on window close | ||
---|---|---|---|
Product: | platform | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Templates | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jlahoda, maxnitribitt, mentlicher |
Priority: | P3 | ||
Version: | Dev | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jaroslav Tulach
2017-04-14 10:44:47 UTC
netbeans$ hg diff diff -r aaa11c0fda00 core.windows/src/org/netbeans/core/windows/services/NbPresenter.java --- a/core.windows/src/org/netbeans/core/windows/services/NbPresenter.java Fri Apr 14 12:05:58 2017 +0200 +++ b/core.windows/src/org/netbeans/core/windows/services/NbPresenter.java Fri Apr 14 12:45:42 2017 +0200 @@ -53,7 +53,6 @@ import java.awt.Dimension; import java.awt.EventQueue; import java.awt.FlowLayout; -import java.awt.FocusTraversalPolicy; import java.awt.Frame; import java.awt.GraphicsDevice; import java.awt.GridBagConstraints; @@ -1280,6 +1279,7 @@ // #81938: special handling WizardDescriptor to avoid close wizard during instantiate if (!descriptor.isNoDefaultClose() ) { descriptor.setValue(NotifyDescriptor.CLOSED_OPTION); + buttonListener.actionPerformed(new ActionEvent(NotifyDescriptor.CLOSED_OPTION, -1, "")); } } public void windowActivated(final java.awt.event.WindowEvent p1) { The above patch makes sure clicking "close"icon results in same action as pressing regular close button... I guess I integrate. People I talked to seem to believe this is not a bad fix: https://hg.netbeans.org/ergonomics/rev/426cf49d9cea Integrated into 'main-silver', will be available in build *201704230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/426cf49d9cea User: Jaroslav Tulach <jtulach@netbeans.org> Log: #270400: Emulate behavior of CLOSED_OPTION when dialog is closing |