private void checkToRepaint(){
  long timePassed=(System.currentTimeMillis() - lastRepainted) / 1000;
  if (timePassed > REPAINT_DELAY) {
    repaint();
    lastRepainted=System.currentTimeMillis();
  }
}

private void checkToRepaint ( ) { long timePassed = ( System . currentTimeMillis ( ) - lastRepainted ) / 1000 ; if ( timePassed > REPAINT_DELAY ) { repaint ( ) ; lastRepainted = System . currentTimeMillis ( ) ; } }
repaints the list on a set delay to update colors .
