Exemplo n.º 1
0
  private void doneButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_doneButtonActionPerformed

    // Somewhat ugly due to netbeans lack of arrays in the GUI designer
    String outType = "";
    if (csvCheck.isSelected()) outType += "CSV,";
    if (kmlCheck.isSelected()) outType += "KML,";
    if (jsonCheck.isSelected()) outType += "JSON,";
    if (shapefileCheck.isSelected()) outType += "SHAPEFILE,";
    if (wktCheck.isSelected()) outType += "WKT,";

    if (outType.length() > 1) outType = outType.substring(0, outType.length() - 1);

    configHelper.setOutLocation(outputText.getText());
    configHelper.setOutType(outType);
    configHelper.setNumThreads((Integer) threadCount.getValue());

    configHelper.saveSettings();

    this.dispose();
  } // GEN-LAST:event_doneButtonActionPerformed