private void boxOperationsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boxOperationsActionPerformed
        OperationType operationType = this.getOperation();
        
        if (OperationType.COMPLEMENT.equals(operationType)
                || OperationType.EXPONENTIATION.equals(operationType)
                || OperationType.KLEENE_STAR.equals(operationType)
                || OperationType.REVERSE.equals(operationType)
                || OperationType.POSITIVE_STAR.equals(operationType)) {
            
            boxLanguage2.setEnabled(false);
            txtAreaLanguage2.setEnabled(false);
            
            if (OperationType.EXPONENTIATION.equals(operationType)
                    || OperationType.KLEENE_STAR.equals(operationType)
                    || OperationType.POSITIVE_STAR.equals(operationType)) {
                
                textExponent.setEnabled(true);
                
            } else {
                textExponent.setEnabled(false);
            }
            
        } else {
            boxLanguage2.setEnabled(true);
            txtAreaLanguage2.setEnabled(true);
            textExponent.setEnabled(false);
        }            
    }//GEN-LAST:event_boxOperationsActionPerformed