public Client(String title) {
		super(title);	
		this.setSize(360,340);	//崰شС
		this.add(jpanel);
		jpanel.setLayout(null);	//岼
		msgArea.setEditable(false);	//ɱ
		jpanel.add(nameLable);
		nameLable.setBounds(10,10,60,20);
		jpanel.add(nameField);
		nameField.setBounds(60,10,270,21);
		jpanel.add(sendField);
		sendField.setBounds(10,270,320,21);
		msgArea.setColumns(20);
		msgArea.setRows(5);
		jScrollPanel.setViewportView(msgArea);
		jpanel.add(jScrollPanel);
		jScrollPanel.setBounds(10,40,320,220);
		ActionListener aListener=new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				write.println(nameField.getText()+":"+sendField.getText());
				sendField.setText("");
			}
		};
		sendField.addActionListener(aListener);
	}