• 大小: 472KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-10
  • 语言: Java
  • 标签: 课程设计  

资源简介

这是基于P2P的局域网即时通信系统 java实现,是我的计算机网络的课程设计的源代码,使用netbean进行编写,可执行的jar文件可以查看我的资源。希望能帮到同学们。

资源截图

代码片段和文件信息

/*
 * To change this license header choose License Headers in Project Properties.
 * To change this template file choose Tools | Templates
 * and open the template in the editor.
 */

package bean;

import java.util.Map;
import javax.swing.AbstractListModel;

/**
 *
 * @author cjm
 */
public class DataModel extends AbstractListModel{
    private MyVector userList;
    public DataModel(MyVector userList){
        super();
        this.userList = userList;
    }
    @Override
    public int getSize() {
        return userList.size();
        //throw new UnsupportedOperationException(“Not supported yet.“); //To change body of generated methods choose Tools | Templates.
    }

    @Override
    public String getElementAt(int index) {
        Map.Entry entry = userList.get(index);
        
        return entry.getKey()+“IP地址为“+entry.getValue();
        //throw new UnsupportedOperationException(“Not supported yet.“); //To change body of generated methods choose Tools | Templates.
    }
    
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-11 16:53  JavaApplication2\
     目录           0  2017-09-11 16:53  JavaApplication2\build\
     文件        3609  2017-05-11 20:59  JavaApplication2\build.xml
     文件          68  2017-06-30 00:21  JavaApplication2\build\built-jar.properties
     目录           0  2017-06-28 19:32  JavaApplication2\build\classes\
     文件           0  2017-05-16 17:08  JavaApplication2\build\classes\.netbeans_automatic_build
     文件           0  2017-05-16 17:08  JavaApplication2\build\classes\.netbeans_update_resources
     目录           0  2017-06-28 19:32  JavaApplication2\build\classes\bean\
     文件        1244  2017-06-30 00:21  JavaApplication2\build\classes\bean\DataModel.class
     文件        3040  2017-06-30 00:21  JavaApplication2\build\classes\bean\MyVector.class
     文件         359  2017-06-30 00:21  JavaApplication2\build\classes\bean\UserRepeatException.class
     目录           0  2017-09-11 16:53  JavaApplication2\build\classes\function\
     文件        5403  2017-06-30 00:21  JavaApplication2\build\classes\function\ChatMultiReceiver.class
     文件        2144  2017-06-30 00:21  JavaApplication2\build\classes\function\ChatSender.class
     文件        3850  2017-06-30 00:21  JavaApplication2\build\classes\function\ChatUDPReceiver.class
     文件        4799  2017-06-30 00:21  JavaApplication2\build\classes\function\Client.class
     文件        1976  2017-06-30 00:21  JavaApplication2\build\classes\function\FileAcceptThread.class
     文件        1209  2017-06-30 00:21  JavaApplication2\build\classes\function\FileSendAllowanceThread.class
     文件        6184  2017-06-30 00:21  JavaApplication2\build\classes\function\Server_Thread.class
     文件        2223  2017-06-30 00:21  JavaApplication2\build\classes\function\TimerClock.class
     目录           0  2017-06-28 19:32  JavaApplication2\build\classes\res\
     目录           0  2017-06-28 19:32  JavaApplication2\build\classes\res\data\
     文件         644  2017-06-30 00:21  JavaApplication2\build\classes\res\data\username_group.xml
     目录           0  2017-06-28 19:32  JavaApplication2\build\classes\Untils\
     文件         727  2017-06-30 00:21  JavaApplication2\build\classes\Untils\NoDoubleClickUtils.class
     目录           0  2017-09-11 16:53  JavaApplication2\build\classes\View\
     文件         557  2017-05-22 22:51  JavaApplication2\build\classes\View\FileTransportframe$1.class
     文件       12171  2017-06-30 00:21  JavaApplication2\build\classes\View\FileTransportframe.class
     文件        1696  2017-05-22 22:51  JavaApplication2\build\classes\View\FileTransportframe.form
     文件        7240  2017-06-30 00:21  JavaApplication2\build\classes\View\Indexframe.class
     文件        3118  2017-05-18 20:07  JavaApplication2\build\classes\View\Indexframe.form
............此处省略66个文件信息

评论

共有 条评论