public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("ok") || e.getSource() == bacString) {
			if (!sha1.isSelected()) {
				if (bacString.getText().length() == 0) {
					bacValue = null;
				} else {
					bacValue = bacString.getText().getBytes();
				}
			} else {
				try {
					MessageDigest md = MessageDigest.getInstance("SHA1");
					byte[] t = md.digest(bacString.getText().getBytes());
					bacValue = new byte[16];
					System.arraycopy(t, 0, bacValue, 0, 16);
				} catch (NoSuchAlgorithmException nsae) {
				}
			}
			dispose();
		}
		if (e.getActionCommand().equals("cancel")) {
			bacValue = null;
			dispose();
		}
		if (e.getActionCommand().equals("load")) {
			JFileChooser fileChooser = new JFileChooser();
			fileChooser.setAcceptAllFileFilterUsed(false);
			fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
			fileChooser.setFileFilter(new FileFilter() {
				public boolean accept(File f) {
					return f.isDirectory();
				}

				public String getDescription() {
					return "Directories";
				}
			});
			int choice = fileChooser.showOpenDialog(this);
			switch (choice) {
				case JFileChooser.APPROVE_OPTION:
					try {
						File file = fileChooser.getSelectedFile();
						TerminalCVCertificateDirectory.getInstance().scanDirectory(file);
					} catch (IOException ioe) {
						/* NOTE: Do nothing. */
						// ioe.printStackTrace();
					}
					break;
				default:
					break;
			}

		}

	}