package com.tutego.insel.solutions.ui;

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

public class MausInTitelleiste1 extends Frame implements WindowListener, MouseMotionListener
{
  private static final long serialVersionUID = -4674769350085614286L;

  MausInTitelleiste1()
  {
  }

  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 void mouseDragged( MouseEvent e )
  {
  }

  public void mouseMoved( MouseEvent e )
  {
    this.setTitle( e.getPoint().toString() );
  }

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