public void stateChanged(ChangeEvent e){
  if (ignoreUpdate) {
    return;
  }
  double value=(double)(1800 - setpointSlider.getValue()) / 10;
  setSetPoint(value);
  sim.setSetPoint(value);
}

public void stateChanged ( ChangeEvent e ) { if ( ignoreUpdate ) { return ; } double value = ( double ) ( 1800 - setpointSlider . getValue ( ) ) / 10 ; setSetPoint ( value ) ; sim . setSetPoint ( value ) ; }
handle a change in the slider by updating the dataset value . this automatically triggers a chart repaint .
