home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / Polyhedra / BasicWindowMonitor.java < prev    next >
Encoding:
Java Source  |  2001-06-23  |  460 b   |  21 lines

  1. //
  2. //  BasicWindowMonitor.java
  3. //  InteractionFrame
  4. //
  5. //  Created by sziegler on Tue Jun 12 2001.
  6. //  Copyright (c) 2001 __CompanyName__. All rights reserved.
  7. //
  8.  
  9. import java.awt.*;
  10. import java.awt.Window;
  11. import java.awt.event.*;
  12.  
  13. public class BasicWindowMonitor extends WindowAdapter {
  14.     public void windowClosing(WindowEvent e) {
  15.         Window w = e.getWindow();
  16.         w.setVisible(false);
  17.         w.dispose();
  18.         System.exit(0);
  19.         }
  20.     }
  21.