private void saveButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_saveButtonActionPerformed
    ConfigKeeper keeper = ConfigManager.getKeeper();

    int delay = (int) delaySpinner.getValue();
    int baseScale = baseScaleSlider.getValue();
    int maxScale = maxScaleSlider.getValue();
    int minNeighbors = (int) minNeighborsSpinner.getValue();
    float increment = (incrementSlider.getValue()) / 100f;
    float scaleMultiplier_inc = (scaleMultiplier_incSlider.getValue()) / 100f;
    boolean doCannyPruning = doCannyPruningCheckBox.isSelected();

    LinkedList<String> XMLfiles = new LinkedList<>();
    LinkedList<Color> colors = new LinkedList<>();

    Component[] cPanels = shapePanel.getComponents();
    for (Component p : cPanels) {
      CascadePanel panel = (CascadePanel) p;
      if (panel.isActive()) {
        XMLfiles.add(panel.getName());
        colors.add(panel.getColor());
      }
    }

    keeper.setConfigs(
        null,
        delay,
        baseScale,
        maxScale,
        scaleMultiplier_inc,
        increment,
        minNeighbors,
        doCannyPruning,
        XMLfiles,
        colors);

    ConfigManager.saveKeeper();

    Webcam webcam = (Webcam) webcamBox.getSelectedItem();
    if (!webcam.isOpen()) {
      parent.initCam(webcam);
    } else {
      parent.setWorkingConfigs();
    }

    setVisible(false);
  } // GEN-LAST:event_saveButtonActionPerformed
 public void getOptions() {
   readOptions(ConfigManager.getKeeper());
 }