public void stateChanged(ChangeEvent ce){
  currentSize=slider.getValue() * 25;
  transition.start();
}

public void stateChanged ( ChangeEvent ce ) { currentSize = slider . getValue ( ) * 25 ; transition . start ( ) ; }
this method handles changes in slider state , which can come from either mouse manipulation of the slider or right / left keyboard events . this event changes the current thumbnail size and starts the transition . we will then receive a callback to setupnextscreen ( ) where we set up the gui according to this new thumbnail size .
