public void actionPerformed(ActionEvent e) {  
		result = !e.getActionCommand().equals("No");
		if (yesNo) {
			if (result) {
				listener.yesPressed();
			} else {
				listener.noPressed();
			}
		}

		//dialog.hide();
		dialog = null;
		finished = true;
	}