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

Java VM does not exit after closing window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.1.5
    • client-libs
    • x86
    • windows_nt



      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)
      ======================================================================

            mmartaksunw Michael Martak (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: