private void showRegForm(){
		final JFrame jf_reg=new JFrame("javaKeע:");
		java.awt.FlowLayout fl=new java.awt.FlowLayout();
		jf_reg.setLayout(fl);
		jf_reg.setSize(200,160);
		final JTextField jta_regNikeName=new JTextField(12);
		final JTextField jta_regPwd=new JTextField(12);
		JLabel la_regName=new JLabel(" :");
		JLabel la_regPwd=new JLabel("  :");
		jf_reg.add(la_regName);
		jf_reg.add(jta_regNikeName);
		jf_reg.add(la_regPwd);
		jf_reg.add(jta_regPwd);
		JButton bu_reg=new JButton("Register User");
		jf_reg.add(bu_reg);
		jf_reg.setLocationRelativeTo(null);//
		jf_reg.setVisible(true);
           //עᰴť¼
		ActionListener buttonAction=new ActionListener(){
			 public void actionPerformed(ActionEvent e){
				 //ȡעسƺ
	    String nikeName=jta_regNikeName.getText().trim();
		String pwd=jta_regPwd.getText().trim();
		String s="ʧ!";
		if(ClientConnection.getIns().conn2Server()){//Ϸ
			int jkNum=conn.regServer(nikeName, pwd);
			  s="עʧ,ʶ:"+jkNum;
			if(jkNum!=-1){
				 s="עɹ,JK:"+jkNum;
			}
		 }
		javax.swing.JOptionPane.showMessageDialog(jf_reg, s);
		conn.closeMe();
		jf_reg.dispose();
		}};
		bu_reg.addActionListener(buttonAction);
	}