Applet in java to draw simple shapes