public ColorDifference(){
  Timer timer=new Timer(1000,this);
  timer.start();
  setPreferredSize(new Dimension(300,200));
}

public ColorDifference ( ) { Timer timer = new Timer ( 1000 , this ) ; timer . start ( ) ; setPreferredSize ( new Dimension ( 300 , 200 ) ) ; }
creates a new instance of colordifference
