public void onMsgRecive(MsgHead m){
	   if(m.getType()==IMsgConstance.command_teamList){//б
		   MsgTeamList ms=(MsgTeamList)m;
		   List<TeamInfo> teams=ms.getTeamLists();
		   for(TeamInfo team:teams){
			   List<UserInfo> users=team.getBudyList();
			   for(UserInfo user:users){
				   DefaultMutableTreeNode newNode=new DefaultMutableTreeNode(user);
					root.add(newNode);//½Ľڵص
			   }
		   }
		}//ӺѵӦ
	   else if(m.getType()==IMsgConstance.command_addFriend_Resp){
		   MsgAddFriendResp mf=(MsgAddFriendResp)m;
		   UserInfo budy=new UserInfo(mf.getFriendJkNum());
		   budy.setNikeName(mf.getFriendNikeName());
		   DefaultMutableTreeNode newNode=new DefaultMutableTreeNode(budy);
			root.add(newNode);//½Ľڵص
	   }
	   else if(m.getType()==IMsgConstance.command_chatText){
		   MsgChatText mt=(MsgChatText)m;
		   javax.swing.JOptionPane.showMessageDialog(this,mt.getSrc()+"˵:"+mt.getMsgContent());
	   }
	   else if(m.getType()==IMsgConstance.command_chatFile){
		   javax.swing.JOptionPane.showMessageDialog(this,"յļ,ô?");
	   }
	   else if(m.getType()==IMsgConstance.command_onLine){
		 //˴Ӧϵͼ
		   javax.swing.JOptionPane.showMessageDialog(this,m.getSrc()+"!");
	   }
	   else if(m.getType()==IMsgConstance.command_offLine){
		   //˴Ӧϵͼ
		   javax.swing.JOptionPane.showMessageDialog(this,m.getSrc()+"!");
	   }
	   else{   //ϢװΪ½Ľڵ
		   javax.swing.JOptionPane.showMessageDialog(this,"ʲôϢ?:"+m.getType());
		}
	   javax.swing.SwingUtilities.updateComponentTreeUI(this);//ˢ½
		}