I think you have used the MouseListener to draw the rectangle and circle on clicks is it? if so the clicks and release should be used.if you cick click control becomes true and the painting takes...