Applet appears below

Draw on the panel with the mouse

Source code

Screen shot below