return outcome; }
    private int updateCurrentDirectoryFromDialog(JFileChooser dialog, int outcome) {	if (outcome != JFileChooser.CANCEL_OPTION) {	    File selectedFile = dialog.getSelectedFile();	    currentDirectory = selectedFile.getParentFile();	}	return outcome;    }