setTitle( "Blob1" );
setSize( 300, 300 );
addMouseListener( new MouseAdapter() {
public void mousePressed( MouseEvent e )
{ x = e.getX();
y = e.getY();
repaint();
}
});
addWindowListener( new WindowAdapter() {
public void windowClosing( WindowEvent e )
{ System.exit(0);
}
});
setVisible( true );