code: private void showProcessScopePanels() {
          if (rules.containsKey(type) && (rules.get(type) & OPTION_PROCESS_SCOPE) != 0) {
              jPanelPID.setVisible(jRadioScopePerProcess.isSelected());
              jPanelPrimaryMetrics.removeAll();
              jPanelAdditionaMetrics.removeAll();
              Enumeration<AbstractButton> enu = buttonGroupMetrics.getElements();
              while (enu.hasMoreElements()) {
                  buttonGroupMetrics.remove(enu.nextElement());
              }
              String[] primaryMetrics = null;
              String[] additionalMetrics = null;
  
              if (jRadioScopePerProcess.isSelected()) {
                  if (type.equals(METRIC_CPU)) {
                      primaryMetrics = cpuProcessMetricsPrimary;
                  } else if (type.equals(METRIC_MEM)) {
                      primaryMetrics = memProcessMetricsPrimary;
                      additionalMetrics = memProcessMetricsAdditional;
                  }
              } else {
                  if (type.equals(METRIC_CPU)) {
                      primaryMetrics = cpuMetricsPrimary;
                      additionalMetrics = cpuMetricsAdditional;
                  } else if (type.equals(METRIC_MEM)) {
                      primaryMetrics = memMetricsPrimary;
                      additionalMetrics = memMetricsAdditional;
                  }
              }
  
              fillMetrics(primaryMetrics, jPanelPrimaryMetrics);
              fillMetrics(additionalMetrics, jPanelAdditionaMetrics);
  
              jLabelUnit.setEnabled(false);
              jComboBoxUnit.setEnabled(false);
          }
          repack();
      }
docs: GEN-LAST:event_jButtonApplyActionPerformed