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