Ejemplo n.º 1
0
  /**
   * The action that happens when the Clear Button is pressed. All fields go to 0, empty of neutral
   * and re-enables things as needed.
   *
   * @param evt
   */
  private void clearButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_clearButtonActionPerformed
    weightValue.setValue(0);
    radiusValue.setValue(0);
    // heightValue.setValue(0);
    widthValue.setValue(0);
    Object_Group.clearSelection();
    Relationship_Group.clearSelection();

    // re-enable everything
    weightValue.setEnabled(true);
    radiusValue.setEnabled(true);
    // heightValue.setEnabled(true);
    widthValue.setEnabled(true);
  } // GEN-LAST:event_clearButtonActionPerformed