This is my EPGY Draw program. It took me a while to understand the syntax of Java and the mouse event listeners so its incomplete. I also encountered some problems with the getActionCommand() function. Either way I managed to get the program to draw rectangles although the shapes are cleared every time a new one is drawn.