package com.tutego.insel.solutions.ui;

import java.awt.*;
import java.awt.event.*;

public class CloseAFrame extends Frame implements WindowListener
{
  private static final long serialVersionUID = 4516134741737546337L;

  public void windowActivated(WindowEvent e)
  {
  }

  public void windowClosed(WindowEvent e)
  {
  }

  public void windowClosing(WindowEvent e)
  {
    System.exit(0);
  }

  public void windowDeactivated(WindowEvent e)
  {
  }

  public void windowDeiconified(WindowEvent e)
  {
  }

  public void windowIconified(WindowEvent e)
  {
  }

  public void windowOpened(WindowEvent e)
  {
  }

  public static void main( String args[] )
  {
    CloseAFrame f = new CloseAFrame();
    f.addWindowListener( f );
    f.setSize( 400, 300 );
    f.setLocation( 100, 100 );
    f.setVisible( true );
  }
}

