コード例 #1
0
  private void applyButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_applyButtonActionPerformed

    try {

      KDialogController.OKbuttonActionPerformed();

    } catch (KExceptionClass error) {

      // log error
      log.log(this, KMetaUtilsClass.getStackTrace(error));

      // show error message
      KMetaUtilsClass.showErrorMessageFromException(getOwner(), error);
    }
  } // GEN-LAST:event_applyButtonActionPerformed
コード例 #2
0
  private void applyButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_applyButtonActionPerformed

    try {
      LblAuditUser.setText(configuration.getField("system_user_name"));

      KDialogController.OKbuttonActionPerformed();

    } catch (KExceptionClass error) {

      // log error
      log.log(this, KMetaUtilsClass.getStackTrace(error));

      // show error message
      KMetaUtilsClass.showErrorMessageFromException(getOwner(), error);
    }
  } // GEN-LAST:event_applyButtonActionPerformed
コード例 #3
0
  private void jButton2ActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton2ActionPerformed
    try {
      ThreadBrowserClass ThreadBrowser =
          new ThreadBrowserClass(configuration, log, new javax.swing.JTable(), this);

      ThreadBrowser.initializeTable();

      selectDialogClass selector =
          new selectDialogClass(configuration, log, this, ThreadBrowser, "Select Thread");

      // dont want to allow this, for example
      selector.getNewButton().setEnabled(false);
      selector.getDeleteButton().setEnabled(false);
      parentID = selector.showDialog();

      if (parentID < 0) {
        throw new KExceptionClass("You must select a Thread !", null);

      } else {

        LblThreadID.setText(Long.toString(parentID));

        persistentObjectManagerClass persistentObjectManager =
            new persistentObjectManagerClass(configuration, log);

        ThreadClass Thread = new ThreadClass();

        Thread = (ThreadClass) persistentObjectManager.copy4(parentID, ThreadClass.class);

        LblThreadName.setText(Thread.getThread());

        LblSize.setText(Thread.getUkuran());
        LblPart.setText(Thread.getPart());
      }

    } catch (Exception error) {
      log.log(this, KMetaUtilsClass.getStackTrace(error));
      KMetaUtilsClass.showErrorMessageFromException(this, error);
    }
  } // GEN-LAST:event_jButton2ActionPerformed
コード例 #4
0
  private void okButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_okButtonActionPerformed

    // calculate
    // qtyneedLabel.setText(Long.toString( String.valueOf("s") ));
    // qtyneedLabel.setText((qtyLabel.getText() * compLabel.getText() * toleranceLabel.getText());

    try {
      LblAuditUser.setText(configuration.getField("system_user_name"));

      KDialogController.OKbuttonActionPerformed();

      setVisible(false);
      dispose();

    } catch (KExceptionClass error) {

      // log error
      log.log(this, KMetaUtilsClass.getStackTrace(error));

      // show error message
      KMetaUtilsClass.showErrorMessageFromException(getOwner(), error);
    }
  } // GEN-LAST:event_okButtonActionPerformed