if (file == null) {
return;
}
String content = "";
try {
content = new PdfFileParser().parsePdf(file);
} catch (IOException ex) {
Logger.getLogger(RuleConfig.class.getName()).log(Level.SEVERE, null, ex);
}
String sourceFolderPath = file.getAbsolutePath().substring(0, file.getAbsolutePath().lastIndexOf(System.getProperty("file.separator")));
pathTextField.setText(sourceFolderPath);