this.pause = pause; t = new Thread(this); t.start();
return colors[ (int)(Math.random() * colors.length) ];
g.setColor(cColor); Dimension s = getSize(); g.fillRect(0, 0, s.width, s.height);
while(true) { cColor = newColor(); repaint(); try { t.sleep(pause); } catch(InterruptedException e) {} }