public void actionPerformed(ActionEvent evt) {
		if (evt.getSource() == browseButton) {
			if (browseFile() && recording)
				startRecording();

		} else if (evt.getSource() == recordButton) {
			if (!recording) {
				startRecording();
			} else {
				stopRecording();
				fnameField.setText(nextNewFilename(fnameField.getText()));
			}

		} else if (evt.getSource() == nextButton) {
			fnameField.setText(nextNewFilename(fnameField.getText()));
			if (recording)
				startRecording();

		} else if (evt.getSource() == closeButton) {
			setVisible(false);

		}
	}