public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand().equals("OK")){
        	scoresFile = scoresFileField.getText();
            pdfDir     = pdfDirField.getText();
            setSuccess(true);
            this.dispose();
        }else if (e.getActionCommand().equals("Browse")){
        	jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);
            if (jfc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION){
            	scoresFileField.setText(jfc.getSelectedFile().getAbsolutePath());
            }
        }else if (e.getActionCommand().equals("Save to")) {
            jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    		if (jfc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION){
    			pdfDirField.setText(jfc.getSelectedFile().getAbsolutePath());
            }
        }else if (e.getActionCommand().equals("Cancel")){
        	setSuccess(false);
        	this.dispose();
        }
    }