public void paint(Graphics g) { super.paint(g); if (notrunning) { notrunning = false; } // end of if }