public class Scribble2 extends Applet implements MouseListener, MouseMotionListener
A simple applet that uses the Java 1.1 event handling model
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);