showFileChooser(p1, new P1<JFileChooser>() {public void e(JFileChooser fc) {
			if (dir && file) {
			    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
			} else if (dir) {
			    fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
			} else {
			    fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
			}
			if (def != null) {
			    fc.setSelectedFile(new File(def));
			}
		}}