import java.awt.*;
public class paint extends java.applet.Applet {
	
Graphics g = null;
int x=0,y=0,ox=0,oy=0;

	public void init(){
	   g = getGraphics();

	}

	public boolean mouseDrag(Event evt, int x, int y)
	{
		g.drawLine(x,y,ox,oy);
		ox=x; oy=y;
		return true; //whatever
	}

}
