FileDocCategorySizeDatePackage
HelloWeb2.javaAPI DocExample632Sat Apr 04 02:58:18 BST 1998None

HelloWeb2

public class HelloWeb2 extends Applet implements MouseMotionListener

Fields Summary
int
messageX
int
messageY
String
theMessage
Constructors Summary
Methods Summary
public voidinit()

	
	   
		theMessage = getParameter("message");

		addMouseMotionListener(this);
	
public voidmouseDragged(java.awt.event.MouseEvent e)

		messageX = e.getX(); 
		messageY = e.getY();
		repaint();
	
public voidmouseMoved(java.awt.event.MouseEvent e)

 
public voidpaint(java.awt.Graphics graphics)

		graphics.drawString( theMessage, messageX, messageY );