code: private void cmdExportResultActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_buttonSaveResultsActionPerformed
  		JFileChooser fileChooser = new JFileChooser(System.getProperty("user.dir"));
  		fileChooser.setDialogTitle("Export to...");
  		int response = fileChooser.showSaveDialog(this);
  		if (response == JFileChooser.APPROVE_OPTION) {
  			File targetFile = fileChooser.getSelectedFile();
  			final String fileLocation = targetFile.getPath();
  			if (canWrite(targetFile)) {
  				Thread thread = new Thread() {
  					public void run() {						
  						getOBDASaveQueryToFileAction().run(fileLocation);
  					}
  				};
  				thread.start();
  			}
  		}
  	}
docs: </editor-fold>//GEN-END:initComponents