FileDocCategorySizeDatePackage
Scribble3.javaAPI DocExample1567Mon Sep 22 13:30:30 BST 1997None

Scribble3

public class Scribble3 extends Applet
A simple applet that uses external classes to implement the Java 1.1 event handling model

Fields Summary
int
last_x
int
last_y
Constructors Summary
Methods Summary
public voidinit()

    MouseListener ml = new MyMouseListener(this);
    MouseMotionListener mml = new MyMouseMotionListener(this);

    // Tell this component what MouseListener and MouseMotionListener
    // objects to notify when mouse and mouse motion events occur.
    this.addMouseListener(ml);
    this.addMouseMotionListener(mml);