public static JButton browseButton(
			final P1<String> p1, 
			final F0<String> def,
			final boolean dir, final boolean file) {
	    JButton btn = new JButton("Browser");
	    btn.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) {
	        showFileChooser(p1, def.e(), dir, file);
	    }});
	    return btn;
	}