I'm having trouble understanding what you said, hardwired.
When the mouse is released I'd like all the graphics to disappear.
So I tried this:
public void mouseReleased(MouseEvent e){
this.remove(boardCanvas);
startShot = null;
endShot = null;
}
startShot and endShot are two irrelevant Point variables.