// Source Code for CloseWindow.class //
// Client Code for Desktop Calendar    //

// Code based on using Server #18     //
// Written by Khalid Mufti - Group 31 //

import java.awt.event.*;

// This class handles what happends when a window is prematurely //
// by pressing the X locatied in the window bar.                 //
public class CloseWindow extends WindowAdapter
{
   // This function listens for when the user closes the window //
   public void windowClosing (WindowEvent e)
   {
      e.getWindow().dispose();  
   }
}
