public void actionPerformed(ActionEvent e) {
		if (e.getSource() == menuItem) {
			JOptionPane.showMessageDialog(this, "谢谢您的支持" + "\n", "关于",
					JOptionPane.INFORMATION_MESSAGE);
			return;
		} else if (e.getSource() == forgetPass) {
			String verfied = JOptionPane.showInputDialog(this, "请输入注册时的验证信息：");
			if (verfied != null
					&& (verfied.equals(PreferenceUtil.passFindBack()) || verfied
							.equals(resetPass))) {
				new Register();
				this.dispose();
				return;
			} else
				JOptionPane.showMessageDialog(this, "信息有误，请核实后重新验证");
		} else if (e.getSource() == confirm) {
			// usrname = usrField.getText();
			String defaultPass = PreferenceUtil.getPasswd();
			if (defaultPass.equals(" ")) {
				JOptionPane.showMessageDialog(this, "您的密码为空，这将是非常危险的，请先设置好密码！");
				new Register();
				dispose();
				return;
			}
			String passwd = new String(passwdField.getPassword());
			passwd = SHAPasswd.encry(passwd);
			success = defaultPass.equals(passwd);
		}
		if (success) {
			EventQueue.invokeLater(new Runnable() {
				public void run() {
					NoteFrame note = new NoteFrame();
					note.setTitle("日记本");

				}
			});
			this.dispose();
			return;
		} else {
			JOptionPane.showMessageDialog(this, "密码错误，重新输入", "错误",
					JOptionPane.WARNING_MESSAGE);
			// usrField.setText("");
			passwdField.setText("");
			return;
		}

	}