public void actionPerformed(ActionEvent e) {
		if (e.getSource() == Load) {
			String name = Name.getText();
			name.trim();
			String passwd = new String(Paw.getPassword());
			passwd.trim();
			if (name.length() == 0 || passwd.length() == 0) {
				this.showReturnMessage(CommonUtil.NAMEPASSWORD_NULL);
			} else {
				message = CommonUtil.USERNAME_MARK + name + CommonUtil.USERPASSWD_SPLIT + CommonUtil.PASSWORD_MARK + passwd;
				try {
					host = Host.getText();
					port = Integer.valueOf(Port.getText());
					boolean connect = this.connect(host, port);//与服务器进行连接
					if (connect) {
						this.setVisible(false);//隐藏登陆窗口
						MainChat mc = new MainChat(dis, dos);
						mc.launchFrame();//打开聊天主窗口
						new Thread(mc).start();//启动线程，获取聊天内容和在线用户列表
					}
				} catch (NumberFormatException e1) {
					this.showReturnMessage(CommonUtil.PORT_ILLEGAL);
				}
			}
 		} else if (e.getSource() == Quit) {
			System.exit(0);
		}
	}