question: public void actionPerformed ( ActionEvent e ) { try { int n = Integer . parseInt ( e . getActionCommand ( ) ) ; setValue ( n ) ; } catch ( NumberFormatException e1 ) { setText ( Integer . toString ( getValue ( ) ) ) ; } }
target:  Reacts to somebody pressing the return key in this field by attempting to set the value displayed. If the value displayed cannot be set, the set value is reinstated.