@Override
	public void actionPerformed(ActionEvent e) {
		String name = this.nameField.getText();
		String password = String.copyValueOf(this.passwordField.getPassword());
		if (this.database.login(name, password)) {// ¼ɹ
			MainFrame frame = new MainFrame(database, name);
			this.dispose();
			frame.setVisible(true);
		} else
			JOptionPane.showMessageDialog(null, "û", "¼ʧ",
					JOptionPane.WARNING_MESSAGE);
	}