• 大小: 3.41M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-10
  • 语言: 其他
  • 标签: 其他  

资源简介

网络编程.rar

资源截图

代码片段和文件信息

package ClientEXE;

import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Label;
import java.awt.Panel;
import java.awt.Point;
import java.awt.SystemColor;
import java.awt.Toolkit;
import java.awt.Window.Type;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.awt.dnd.DnDConstants;
import java.awt.dnd.DropTarget;
import java.awt.dnd.DropTargetAdapter;
import java.awt.dnd.DropTargetDropEvent;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.BindException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;

import javax.swing.BoxLayout;
import javax.swing.DefaultListModel;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.border.MatteBorder;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.text.DefaultCaret;

public class Client{
    private Jframe frame;
    private JScrollPane rightScroll;
    private JScrollPane leftScroll;

    private JPanel logPanle;
    private Jframe loginframe;
    private JLabel label_username;
    private JLabel label_password;
    private JTextField txt_login_name;
    private JTextField txt_password;
    private JTextField txt_login_ip;
    private JTextField txt_login_port;
    private JTextField txt_login_forget;
    private JButton btn_submit;
    private JButton btn_zhuce;
    private JButton btn_forget_pass;

    public DefaultListModel listModel;
    private boolean isConnected = false;

    private int sendfor_who;
    private int server_port=0;

    private ServerSocket serverSocket;
    private ServerThread serverThread;
    private Socket socketfor_p2p;
    private boolean isConnected_p2p = false;
    private ArrayList

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        622  2017-12-21 10:55  网络编程\EXE\.classpath

     文件        379  2017-12-23 17:46  网络编程\EXE\.project

     文件        598  2017-12-20 14:45  网络编程\EXE\.settings\org.eclipse.jdt.core.prefs

     文件        976  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$1.class

     文件       1204  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$10.class

     文件        965  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$11.class

     文件       1204  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$12.class

     文件       1073  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$13.class

     文件        761  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$14.class

     文件        657  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$15.class

     文件       1073  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$16.class

     文件       2331  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$17.class

     文件       1303  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$18.class

     文件       1127  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$19.class

     文件       1216  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$2.class

     文件        708  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$20.class

     文件        650  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$21.class

     文件        657  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$22.class

     文件        815  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$23.class

     文件       2589  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$24.class

     文件       3381  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$3.class

     文件       3452  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$4.class

     文件       3588  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$5.class

     文件       1084  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$6.class

     文件        963  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$7.class

     文件       1202  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$8.class

     文件        963  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$9.class

     文件       4861  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$ClientThread.class

     文件       7396  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$MessageThread.class

     文件       3665  2017-12-23 18:19  网络编程\EXE\bin\ClientEXE\Client$MessageThread_P2P.class

............此处省略63个文件信息

评论

共有 条评论