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

Default windowClosing should be exit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description



      Name: sgC58550 Date: 06/27/97


      I think it makes sense that the default windowClosing()
      should be exit(). That will save everyone from having to
      create a special WindowAdapter just to close an application.
      If someone wants a different action, they can overwrite that
      method.

      Please make the code for WindowAdapter as follows:

      public abstract class WindowAdapter implements WindowListener {
          public void windowOpened(WindowEvent e) {}
          public void windowClosing(WindowEvent e) {System.exit(0);}
          public void windowClosed(WindowEvent e) {}
          public void windowIconified(WindowEvent e) {}
          public void windowDeiconified(WindowEvent e) {}
          public void windowActivated(WindowEvent e) {}
          public void windowDeactivated(WindowEvent e) {}
      }
      THank you
      company - PRIOR , email - ###@###.###
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            ehawkessunw Eric Hawkes (Inactive)
            Reporter:
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: