if (chooser.showDialog(this, "Select file for export")
if (chooser.showDialog(this, "Select query file")
	private void open() {		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.canRead())				JOptionPane.showInternalMessageDialog(this, "Can not read query from file " + file.getAbsolutePath(),					"Error", JOptionPane.ERROR_MESSAGE);			try {				BufferedReader reader = new BufferedReader(new FileReader(file));				StringBuffer buf = new StringBuffer();				String line;				while((line = reader.readLine()) != null) {					buf.append(line);					buf.append('\n');				}				query.setText(buf.toString());			} catch (FileNotFoundException e) {				ClientFrame.showErrorMessage(e.getMessage(), e);			} catch (IOException e) {				ClientFrame.showErrorMessage(e.getMessage(), e);			}		}	}