Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5037079

REGRESSION: WindowClosed event not called with JOptionPane createDialog

    • generic, x86
    • generic, windows_2000



        Name: gm110360 Date: 04/23/2004


        FULL PRODUCT VERSION :
        1.4.2_01

        FULL OS VERSION :
        Windows 2000, Windows NT

        A DESCRIPTION OF THE PROBLEM :

        WindowClosed event with JOptionPane.createDialog is not called in 1.4.2. The same code in 1.3 works fine and the windowClosed event is called when the dialog is closed.

        JOptionPane optionPane = new JOptionPane("test", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION);
                        testDialog = optionPane.createDialog(null, "test");
                        testDialog.setModal(false);
        testDialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
                        testDialog.addWindowListener(new WindowAdapter() {
                            public void windowClosed(WindowEvent e) {
                              System.out.println("I am called");
        }
        });

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run the code


        REPRODUCIBILITY :
        This bug can be reproduced always.

        Release Regression From : 1.3.1
        The above release value was the last known release where this
        bug was known to work. Since then there has been a regression.

        (Incident Review ID: 214275)
        ======================================================================

              Unassigned Unassigned
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: