code: private void buttonGraphvizDotFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonGraphvizDotFileActionPerformed
        final JFileChooser fileChooser = new JFileChooser(this.textFieldPathToGraphvizDot.getText());
        fileChooser.setDialogTitle("Select GraphViz dot executable file");
        fileChooser.setApproveButtonText("Select");
        fileChooser.setAcceptAllFileFilterUsed(true);
        fileChooser.setMultiSelectionEnabled(false);
  
        fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
  
        if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
          final File file = fileChooser.getSelectedFile();
          this.textFieldPathToGraphvizDot.setText(file.getAbsolutePath());
        }
      }
docs: GEN-LAST:event_checkBoxShowHiddenFilesActionPerformed