public class Scribble2 extends Applet implements MouseListener, MouseMotionListener
Fields Summary
private int
last_x
private int
last_y
Constructors Summary
Methods Summary
public void
init()
// Tell this applet what MouseListener and MouseMotionListener
// objects to notify when mouse and mouse motion events occur.
// Since we implement the interfaces ourself, our own methods are called.
this.addMouseListener(this);
this.addMouseMotionListener(this);