Skip to content

Commit

Permalink
v1.6 Selection of both files and directories with JFileChooser activated
Browse files Browse the repository at this point in the history
  • Loading branch information
rccarrasco committed Dec 11, 2013
1 parent d6be8d8 commit e7492bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/eu/digitisation/gui/InputFileSelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e7492bc

Please sign in to comment.