From e7492bca91470ab153703fcb79042e4f142d5470 Mon Sep 17 00:00:00 2001 From: "Rafael C. Carrasco" Date: Wed, 11 Dec 2013 15:52:06 +0100 Subject: [PATCH] v1.6 Selection of both files and directories with JFileChooser activated --- src/main/java/eu/digitisation/gui/InputFileSelector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/digitisation/gui/InputFileSelector.java b/src/main/java/eu/digitisation/gui/InputFileSelector.java index c4da3e7..efb3aa5 100644 --- a/src/main/java/eu/digitisation/gui/InputFileSelector.java +++ b/src/main/java/eu/digitisation/gui/InputFileSelector.java @@ -171,6 +171,7 @@ public void actionPerformed(ActionEvent e) { private File choose(String defaultName) { JFileChooser chooser = new JFileChooser(); + chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); chooser.setDialogTitle("Select input file"); chooser.setCurrentDirectory(dir); chooser.setSelectedFile(new File(defaultName));