public ChatRoom(int roomid, String title,String username,Socket socket)
	{
		super("Chat : "+title);
		this.roomid=roomid;
		this.title=title;
		this.username=username;
		createUI();
		
		this.socket=socket;
		try {
			objOut=new ObjectOutputStream(this.socket.getOutputStream());
			objIn=new ObjectInputStream(this.socket.getInputStream());
			t=new Thread(this);
			t.start();		
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}