code: private void jComboBoxGranulationActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jComboBoxGranulationActionPerformed
      {//GEN-HEADEREND:event_jComboBoxGranulationActionPerformed
          //notify parent if value changed and valid
          int newValue = getValueFromString((String) jComboBoxGranulation.getSelectedItem());
          if (newValue != -1 && parent.getGranulation() != newValue) {
              parent.setGranulation(newValue);
          }
      }
docs: </editor-fold>//GEN-END:initComponents