public void handleEvent(Event event) { try { int iValue = (Integer.valueOf(txtValue.getText()).intValue()); if (iValue >= iMinValue && iValue <= iMaxValue) { iCurrentValue = iValue; fireValueChangedEvent(); } } catch (NumberFormatException e1 ) { } }
public void handleEvent( Event event ) { try { int iValue = ( Integer.valueOf( txtValue.getText( ) ).intValue( ) ); if ( iValue >= iMinValue && iValue <= iMaxValue ) { iCurrentValue = iValue; fireValueChangedEvent( ); } else {  txtValue.setText( String.valueOf( iCurrentValue ) ); } } catch ( NumberFormatException e1 ) {  txtValue.setText( String.valueOf( iCurrentValue ) ); } }
    public void handleEvent(Event event)    {        try        {            int iValue = (Integer.valueOf(txtValue.getText()).intValue());            if (iValue >= iMinValue && iValue <= iMaxValue)            {                iCurrentValue = iValue;                fireValueChangedEvent();            }        }        catch (NumberFormatException e1 )        {        }    }