-
Bug
-
Resolution: Won't Fix
-
P4
-
1.4.0, 1.4.2
-
generic, x86
-
generic, windows_2000
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2172575 | 1.4-pool | Unassigned | P5 | Closed | Won't Fix |
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)
======================================================================
- backported by
-
JDK-2172575 REGRESSION: WindowClosed event not called with JOptionPane createDialog
-
- Closed
-
- relates to
-
JDK-4133782 defaultCloseOperation ignored when dialog created with JOptionPane.createDialog
-
- Resolved
-