Fix welcome directory picker

This commit is contained in:
Jakub Valtar
2015-09-30 13:35:38 -04:00
parent 497c628818
commit ea700abc94
+1 -1
View File
@@ -6408,7 +6408,7 @@ public class PApplet implements PConstants {
fileChooser.setDialogTitle(prompt);
fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
if (defaultSelection != null) {
fileChooser.setSelectedFile(defaultSelection);
fileChooser.setCurrentDirectory(defaultSelection);
}
int result = fileChooser.showOpenDialog(parentFrame);