JFileChooser chooser = new JFileChooser();
JFileChooser chooser = new JFileChooser(System.getProperty("user.dir"));
	private void uploadAction(ActionEvent ev) {		JFileChooser chooser = new JFileChooser();		chooser.setMultiSelectionEnabled(true);		chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);		if (chooser.showDialog(this, "Select files or directories to store")			== JFileChooser.APPROVE_OPTION) {			final File[] files = chooser.getSelectedFiles();			if (files.length > 0) {				new Thread() {					public void run() {						UploadDialog upload = new UploadDialog();						try {							client.parse(files, upload);							client.getResources();						} catch (XMLDBException e) {							JOptionPane.showMessageDialog(null, "XMLDBException: " + e.getMessage());						}						upload.setVisible(false);					}				}				.start();			}		}	}