private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    String filename = "." + File.separator;
    if (!jPath.getText().isEmpty()) {
        filename = (jPath.getText());
    }
    JFileChooser fc = new JFileChooser(new File(filename));
    fc.setDialogTitle("Open DBSniffer program to get its location");
    // Show open dialog; this method does not return until the dialog is closed
    int returnVal = fc.showOpenDialog(new JFrame());
    if (returnVal == JFileChooser.APPROVE_OPTION) {
        selFile = fc.getSelectedFile();
//            System.out.println("You chose to open this file: " + fc.getSelectedFile().getName());
        jPath.setText(fc.getSelectedFile().getParent() + File.separator);
    } else {
//            System.out.println("You chose not to open file");
        }

// TODO add your handling code here:
}