private int readNodeAddress(){
  int addr=-1;
  try {
    addr=nodeAddrBox.getSelectedIndex();
  }
 catch (  Exception e) {
    statusText1.setText(rb.getString("Error5"));
    statusText1.setVisible(true);
    errorInStatus1=true;
    resetNotes2();
    return -1;
  }
  if ((addr < 0) || (addr > 255)) {
    statusText1.setText(rb.getString("Error6"));
    statusText1.setVisible(true);
    errorInStatus1=true;
    resetNotes2();
    return -1;
  }
  return (addr);
}

private int readNodeAddress ( ) { int addr = - 1 ; try { addr = nodeAddrBox . getSelectedIndex ( ) ; } catch ( Exception e ) { statusText1 . setText ( rb . getString ( "Error5" ) ) ; statusText1 . setVisible ( true ) ; errorInStatus1 = true ; resetNotes2 ( ) ; return - 1 ; } if ( ( addr < 0 ) || ( addr > 255 ) ) { statusText1 . setText ( rb . getString ( "Error6" ) ) ; statusText1 . setVisible ( true ) ; errorInStatus1 = true ; resetNotes2 ( ) ; return - 1 ; } return ( addr ) ; }
read node address and check for legal range if successful , a node address in the range 0 - 255 is returned . if not successful , - 1 is returned and an appropriate error message is placed in statustext1 .
