code: private void maxiEncodingModeComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_maxiEncodingModeComboActionPerformed
          // TODO add your handling code here:
          if (maxiEncodingModeCombo.getSelectedIndex() == 0 || maxiEncodingModeCombo.getSelectedIndex() == 1) {
              maxiPrimaryData.setEnabled(true);
              maxiPrimaryDataLabel.setEnabled(true);
          } else {
              maxiPrimaryData.setEnabled(false);
              maxiPrimaryDataLabel.setEnabled(false);
          }
          encodeData();
      }
docs: GEN-LAST:event_gridmatrixUserSizeComboActionPerformed