public void editButtonActionPerformed(){
  String nodeAddress=readNodeAddress();
  if (nodeAddress.equals("")) {
    return;
  }
  curNode=(IEEE802154Node)itc.getNodeFromAddress(nodeAddress);
  if (curNode == null) {
    statusText1.setText(Bundle.getMessage("Error4"));
    statusText1.setVisible(true);
    errorInStatus1=true;
    resetNotes2();
    return;
  }
  jmri.util.JmriJFrame editFrame=new EditNodeFrame(itc,curNode);
  try {
    editFrame.initComponents();
  }
 catch (  Exception ex) {
    log.error("Exception initializing Frame: {}",ex.toString());
    return;
  }
  editFrame.setVisible(true);
}

public void editButtonActionPerformed ( ) { String nodeAddress = readNodeAddress ( ) ; if ( nodeAddress . equals ( "" ) ) { return ; } curNode = ( IEEE802154Node ) itc . getNodeFromAddress ( nodeAddress ) ; if ( curNode == null ) { statusText1 . setText ( Bundle . getMessage ( "Error4" ) ) ; statusText1 . setVisible ( true ) ; errorInStatus1 = true ; resetNotes2 ( ) ; return ; } jmri . util . JmriJFrame editFrame = new EditNodeFrame ( itc , curNode ) ; try { editFrame . initComponents ( ) ; } catch ( Exception ex ) { log . error ( "Exception initializing Frame: {}" , ex . toString ( ) ) ; return ; } editFrame . setVisible ( true ) ; }
method to handle edit button
