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;
}

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 ; }
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
