public void stateChanged(ChangeEvent e){
  JSlider j=(JSlider)e.getSource();
  BoundedRangeModel r=j.getModel();
  for (int i=0; i < nValues; i++) {
    if (r == models[i]) {
      setModel(i,r.getValue());
      break;
    }
  }
  prop.firePropertyChange("Value",null,j);
}

public void stateChanged ( ChangeEvent e ) { JSlider j = ( JSlider ) e . getSource ( ) ; BoundedRangeModel r = j . getModel ( ) ; for ( int i = 0 ; i < nValues ; i ++ ) { if ( r == models [ i ] ) { setModel ( i , r . getValue ( ) ) ; break ; } } prop . firePropertyChange ( "Value" , null , j ) ; }
called for new values of a slider . < p > sets the cv ( s ) as needed .
