FileDocCategorySizeDatePackage
Blob2.javaAPI DocExample1634Thu Feb 03 08:18:02 GMT 2000None

Blob2

public class Blob2 extends Frame

Fields Summary
private Picture
picture
Constructors Summary
public Blob2()

  setTitle( "Blob2" ); 
      setSize( 300, 300 );
      picture = new Picture();
      
      addMouseListener( new MouseAdapter() {
         public void mousePressed( MouseEvent e )
         {  picture.addBlob( e.getX(), e.getY() );
            repaint();
         }
      });
      
      addWindowListener( new WindowAdapter() {
         public void windowClosing( WindowEvent e )
         {  System.exit(0);
         }
      });
      
      setVisible( true ); 
   
Methods Summary
public static voidmain(java.lang.String[] args)

  new Blob2();
   
public voidpaint(java.awt.Graphics g)

  picture.paint( g );
   
public voidupdate(java.awt.Graphics g)

  paint( g );