Name: joT67522 Date: 01/12/98
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)
======================================================================