新手练练----也做即时通信系统(2)
继续完善功能,后面的路还很长。。。 今天还用这个小示例程序给别人讲了次课,发现自己的演讲天赋还是不错的,讲完后闻及感受,说我讲的听通俗易懂的,例子比喻也很不错,开心,呵呵。。。 clientMain.java out.println(this.clientCmd); this.serverMsg = in.readLine(); strTmp = this.serverMsg.split(spliter); if(strTmp[0].equals(new String("getbuddys"))) { this.creatBuddyList(strTmp); //用服务器传过来的好友数据建列表 } private void creatBuddyList(String[] buddys) { DefaultMutableTreeNode buddy = null; for(int i=1;i<buddys.length;i++) { buddy = ...