question: protected boolean readNumInputBits ( ) { try { inputBits = Integer . parseInt ( numInputField . getText ( ) ) ; } catch ( Exception e ) { statusText1 . setText ( rb . getString ( "Error10" ) ) ; statusText1 . setVisible ( true ) ; inputBits = 0 ; errorInStatus1 = true ; resetNotes2 ( ) ; return ( false ) ; } if ( inputBits <= 0 ) { statusText1 . setText ( rb . getString ( "Error11" ) ) ; statusText1 . setVisible ( true ) ; inputBits = 0 ; errorInStatus1 = true ; resetNotes2 ( ) ; return ( false ) ; } if ( inputBits > 1000 ) { statusText1 . setText ( rb . getString ( "Error12" ) ) ; statusText1 . setVisible ( true ) ; inputBits = 0 ; errorInStatus1 = true ; resetNotes2 ( ) ; return ( false ) ; } return true ; }
target:  Read number of input bits from window Returns 'true' if successful, 'false' if an error was detected. If an error is detected, a suitable error message is placed in the Notes area