public void stateChanged ( ChangeEvent e ) { SpinnerNumberModel model = ( SpinnerNumberModel ) spinner . getModel ( ) ; int value = model . getNumber ( ) . intValue ( ) ; setValue ( value ) ; }
Is invoked when the spinner model changes