• 大小: 3.99MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-16
  • 语言: Java
  • 标签: java  QQ  好友列表  界面  

资源简介

java 高仿QQ8.x版本好友列表+服务器实现 高仿了QQ8.x版本的好友界面,使用javajdk1.8开发,正常1.6以上都可以直接运行,1.5版本应该改下泛型部分就可以正常运行。主要是好友列表的界面效果,其它的部分没有细做,有需要的可以下载 作者:Scruel 转载请注明出处

资源截图

代码片段和文件信息

package ChartRoom;

import sun.net.www.content.image.png;

import javax.management.monitor.Monitor;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreePath;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.Socket;
import java.net.URLDecoder;
import java.util.HashMap;

import static javafx.scene.input.KeyCode.J;
import static sun.rmi.registry.RegistryImpl.getID;


/**
 * Created by Scruel on 2016/6/14.
 * Personal blog  --  http://wysum.com
 */
public class ChartClient extends Jframe
{
        private String username;
        private int fIndex = 0;
        private Socket client;
        private objectOutputStream writer;
        private objectInputStream reader;
        private object[] onlineUser;
        private HashMap chartingMap = new HashMap<>();
        private JPanel jp = new JPanel(null);
        private JScrollPane jScrollPane = new JScrollPane();
        private WyFatherPanel onlineFP = new WyFatherPanel(“当前在线“ fIndex this);
        private HashMap fatherMap = new HashMap<>();
        private File localPath = new File(URLDecoder.decode(this.getClass().getResource(““).getFile() + “img“));


//        public static void main(String[] args) throws Exception
//        {
//                new ChartClient(“无言独影“ new Socket() new objectOutputStream(new FileOutputStream(new File(“K:\\Program\\编程\\javaWorkSpace\\current\\bin\\socket\\data.pro“))) new objectInputStream(new FileInputStream(new File(“K:\\Program\\编程\\javaWorkSpace\\current\\bin\\socket\\data.pro“))));
//        }

        public void openChartWindow(String target)
        {
//280165
                if (!target.equals(username))
                {
                        if (chartingMap.containsKey(target))
                        {
                                chartingMap.get(target).setVisible(true);
                        } else
                        {
                                ChartWindow cw = new ChartWindow(username target writer);
                                chartingMap.put(target cw);
                        }
                }
        }

        ChartClient(String username Socket socket objectOutputStream writer objectInputStream reader)
        {

                super(username + “的聊天界面“);
                this.reader = reader;
                this.writer = writer;
                this.client = socket;
                this.username = username;
                System.out.println(username);
                fatherMap.put(fIndex++ onlineFP);
                WyFatherPanel fatherPanel2 = new WyFatherPanel(“我的好友“ fIndex this);
                fatherMap.put(fIndex++ fatherPanel2);
                //添加分组的时候可以用:1.创建FP  2.置入map 3.更新jpPsize 4.更新UI
                int countHeigh = 0;
                for (int i : fatherMap.ke

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

     文件       1162  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$1.class

     文件        811  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$2.class

     文件       1320  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$3.class

     文件        829  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$4.class

     文件       1316  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$5.class

     文件       1047  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$6.class

     文件       1147  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$7.class

     文件       1227  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$8.class

     文件       1406  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$9.class

     文件       3143  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$Monitor.class

     文件       1683  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient$MyWindowListener.class

     文件       9971  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartClient.class

     文件       2243  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartServer$1.class

     文件       5118  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartServer$ChartClientHandle.class

     文件        776  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartServer$OnlineUserData.class

     文件        466  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartServer$UserData.class

     文件       4320  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartServer.class

     文件        890  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartWindow$1.class

     文件       2216  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartWindow$2.class

     文件       1033  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartWindow$3.class

     文件       1041  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartWindow$4.class

     文件       3750  2016-06-23 19:56  ChartRoom\bin\ChartRoom\ChartWindow.class

     文件        232  2016-06-28 00:01  ChartRoom\bin\ChartRoom\data.pro

     文件        229  2016-06-23 19:56  ChartRoom\bin\ChartRoom\img\0.png

     文件        262  2016-06-23 19:56  ChartRoom\bin\ChartRoom\img\15.png

     文件        214  2016-06-23 19:56  ChartRoom\bin\ChartRoom\img\30.png

     文件        136  2016-06-23 19:56  ChartRoom\bin\ChartRoom\img\45.png

     文件        211  2016-06-23 19:56  ChartRoom\bin\ChartRoom\img\60.png

     文件        198  2016-06-23 19:56  ChartRoom\bin\ChartRoom\img\75.png

     文件        171  2016-06-23 19:56  ChartRoom\bin\ChartRoom\img\90.png

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

评论

共有 条评论