public File showRawSaveDialog()
	{
		JFileChooser fc = new JFileChooser();
		if (filePath != null)
			fc.setCurrentDirectory(filePath);
		FileFilter filter= new FileNameExtensionFilter("Text file", "txt");
		fc.addChoosableFileFilter(filter);
		if (fc.showSaveDialog(this.frmOpenaltimeter) == JFileChooser.APPROVE_OPTION)
		{
			File selectedFile = fc.getSelectedFile(); 
			// if the text file filter is selected we ensure there's a .txt extension
			if (fc.getFileFilter() == filter) {
				if (!selectedFile.getAbsolutePath().endsWith(".txt"))
					selectedFile = new File(selectedFile.getAbsolutePath() + ".txt");
			}
			filePath = selectedFile.getParentFile();
				
			return selectedFile;
		}
		else return null;
	}