Draw lines by clicking and dragging on the main part of the applet.
Change pen color by clicking on the colored squares.
"Clear" erases the drawing area.
"Delete" erases single lines in reverse order.

The source.