コード例 #1
0
  private void okButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_okButtonActionPerformed
    String name = saName.getText();
    if (AddAction.checkNull(saName, NmsClientUtil.GetString("Notification Name"))) {
      return;
    }
    if (AddAction.checkNumber(saInt, jLabel3.getText())) {
      return;
    }
    addAction.addNewAction(getProperties(), AddAction.suppressAction); // No i18n

    this.setVisible(false);
    this.dispose();
  } // GEN-LAST:event_okButtonActionPerformed
コード例 #2
0
 private void cancelButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_cancelButtonActionPerformed
   this.setVisible(false);
   this.dispose();
   addAction.addNew = false;
 } // GEN-LAST:event_cancelButtonActionPerformed