JFileChooser chooser = new JFileChooser(System.getProperty("user.dir"));
String workDir = properties.getProperty("working-dir", System .getProperty("user.dir")); JFileChooser chooser = new JFileChooser(workDir);
	private void export() {		JFileChooser chooser = new JFileChooser(System.getProperty("user.dir"));		chooser.setMultiSelectionEnabled(false);		chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);		if (chooser.showDialog(this, "Select file for export")				== JFileChooser.APPROVE_OPTION) {			File file = chooser.getSelectedFile();			if(file.exists() &&				JOptionPane.showConfirmDialog(this, "File exists. Overwrite?", "Overwrite?", 					JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION)				return;			try {				FileWriter writer = new FileWriter(file);				writer.write(text.getText());				writer.close();			} catch (IOException e) {				ClientFrame.showErrorMessage(					"XMLDBException: " + e.getMessage(),					e);			}		}	}