public void run()
{
  while(true)
  {
    rColor = (int)(255 * Math.random());
    gColor = (int)(255 * Math.random());
    bColor = (int)(255 * Math.random());

    repaint();
    
    try
    {
	thr.sleep(1000);
    }
    catch(InterruptedException ie)
    {
	stop();
    }	
  }
}