private void createUI()
	{

		this.setSize(500, 400);
		this.setLocation(100, 100);
		
		this.setLayout(new BorderLayout());
		this.add(scrollbar,BorderLayout.CENTER);
		this.add(bottom,BorderLayout.SOUTH);

		contents.setLineWrap(true);
		scrollbar.getViewport().add(contents);

		
		sendButton.setActionCommand("send");
		sendButton.addActionListener(this);
		text.addKeyListener(this);


		bottom.setLayout(new BorderLayout());
		bottom.add(text,BorderLayout.CENTER);
		JPanel side=new JPanel();
		side.setLayout(new FlowLayout());
		side.add(sendButton);
		bottom.add(side,BorderLayout.EAST);


		this.addWindowListener(this);
		this.setVisible(true);
	}