fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
	static File[] addFiles(Component parent) {		JFileChooser fc = new JFileChooser();		fc.addChoosableFileFilter(new GalleryFileFilter());		fc.setFileSelectionMode(JFileChooser.FILES_ONLY);		fc.setMultiSelectionEnabled(true);		File currentDirectory = GalleryRemote._().properties.getCurrentDirectory();		if (currentDirectory != null) {			fc.setCurrentDirectory(currentDirectory);		}		int retval = fc.showDialog(parent, GRI18n.getString("AddFileDialog", "Add"));		if (retval != JFileChooser.CANCEL_OPTION) {			GalleryRemote._().properties.setCurrentDirectory(fc.getCurrentDirectory());			File[] files = fc.getSelectedFiles();			return files;		}		return null;	}