You are here: irt.org | About | Feedback | 5124 [ previous next ]
Feedback on:
Mouse Event Handling in Java 1.0
Sent by
Robert Iovino on Wednesday October 31, 2007 at 10:44:01
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
In the last block:
public boolean mouseDrag(Event e, int x, int y)
{
Graphics g = getGraphics();
g.drawLine(xpoint, ypoint, x, y);
xpoint = x;
ypoint = y;
return true;
}
}
return true; needs to be added to work in the Applet Viewer.
Great code! It help me out tremendously! Thank you!