@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		try {
			ChatRoom chat=new ChatRoom(0,txtRoomName.getText(),UserSetting.username,new Socket(UserSetting.serverip,UserSetting.port));
			chat.start();
			userNotify();
			close();
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}