#270400: Emulate behavior of CLOSED_OPTION when dialog is closing NB9_FF
authorJaroslav Tulach <jtulach@netbeans.org>
Sat, 22 Apr 2017 07:20:41 +0200
changeset 315714426cf49d9cea
parent 315713 fd0037f3374e
child 315715 6e5bf66867be
child 315958 923b1bbdd5ff
#270400: Emulate behavior of CLOSED_OPTION when dialog is closing
core.windows/src/org/netbeans/core/windows/services/NbPresenter.java
     1.1 --- a/core.windows/src/org/netbeans/core/windows/services/NbPresenter.java	Fri Apr 21 06:26:44 2017 +0000
     1.2 +++ b/core.windows/src/org/netbeans/core/windows/services/NbPresenter.java	Sat Apr 22 07:20:41 2017 +0200
     1.3 @@ -53,7 +53,6 @@
     1.4  import java.awt.Dimension;
     1.5  import java.awt.EventQueue;
     1.6  import java.awt.FlowLayout;
     1.7 -import java.awt.FocusTraversalPolicy;
     1.8  import java.awt.Frame;
     1.9  import java.awt.GraphicsDevice;
    1.10  import java.awt.GridBagConstraints;
    1.11 @@ -1280,6 +1279,7 @@
    1.12          // #81938: special handling WizardDescriptor to avoid close wizard during instantiate
    1.13          if (!descriptor.isNoDefaultClose() ) {
    1.14              descriptor.setValue(NotifyDescriptor.CLOSED_OPTION);
    1.15 +            buttonListener.actionPerformed(new ActionEvent(NotifyDescriptor.CLOSED_OPTION, -1, ""));
    1.16          }
    1.17      }
    1.18      public void windowActivated(final java.awt.event.WindowEvent p1) {