A Scribble Applet Example
// This method gets called each time the user
// drags the mouse on our Scribble-Frame
public boolean mouseDrag(Event e, int x, int y) {
Graphics g = this.getGraphics();
g.drawLine(last_x, last_y, x, y);
} // end method mouseDrag
//This is the “entry point” where we instantiate an object
public static void main(String args[]) {
Scribble my_scribble = new Scribble("Example Scribble");
my_scribble.resize(200,200);