@Override
	public void run() {
		boolean isKeep=true;
		try {
			while(isKeep)
			{
				if(objIn!=null)
				{
					Message m=(Message)objIn.readObject();
					if(m!=null && m.msgtype==Msg.room)
					{
						//System.out.println(m.toString());
						this.roomid=m.roomid;
						contents.append(m.sendUserName+"> "+m.msg+"\n");					
					}
				}
			}
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			isKeep=false;
		} catch (IOException e) {
			e.printStackTrace();
			isKeep=false;
			
		}
	}