|
Quick Lists
|
|
Bug ID:
|
4103350
|
|
Votes
|
5
|
|
Synopsis
|
Java VM does not exit after closing window
|
|
Category
|
java:classes_awt
|
|
Reported Against
|
1.1.5
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4030718,
bug
|
|
Priority:
|
5-Very Low
|
|
Related Bugs
|
4030718
|
|
Submit Date
|
12-JAN-1998
|
|
Description
|
public class L implements java.io.Serializable {
/* ============================================================ */
public static void main(String[] args) {
new N();
System.err.println(" DONE");
}
}
-----------
import com.sun.java.swing.*;
import java.awt.*;
import java.awt.event.*;
public class N implements java.io.Serializable {
JFrame frame;
public N()
{
frame=new JFrame("TEST");
frame.getContentPane().add(new JLabel("TEST2 "));
/* window closer */
frame.addWindowListener(
new WindowAdapter() {
public void windowClosing(WindowEvent e) {
frame.dispose();
}
});
frame.pack();
frame.show();
}
}
Clicking on Close of the window
the windows closes but java VM does not exit.
(Review ID: 22629)
======================================================================
|
|
Work Around
|
N/A
|
|
Evaluation
|
Probably a dupe of 4030718.
xxxxx@xxxxx 2000-05-04
|
|
Comments
|
Submitted On 10-APR-1998
miketoth
When I click the close button or select close from the menu (on Windows NT),
neither the windowClosing() event nor the windowClosed() events fire.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |