code: private void directoryButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_directoryButtonActionPerformed
          // Select save directory
          JFileChooser chooser = new JFileChooser();
          chooser.setDialogTitle("Directory Select");
          chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
          chooser.setAcceptAllFileFilterUsed(false);
          if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
              folderField.setText(chooser.getSelectedFile().getAbsolutePath()
                      + File.separator);
          }
      }
docs: </editor-fold>//GEN-END:initComponents