资源简介

基于JAVA语言的网络白板,实现了图像的实时传输和聊天功能

资源截图

代码片段和文件信息

package Client;

import java.awt.*;
import java.awt.image.BufferedImage;

import javax.swing.*;

import paint.ChatPanel;
import paint.MainPaintJPanl;
import paint.MyThread;

public class Client extends Jframe {

private MainPaintJPanl mainPaintJPanl;
private ChatPanel chatPanel;
private int sendFlag;
BufferedImage picture = new BufferedImage(760 525
BufferedImage.TYPE_4BYTE_ABGR);
Graphics hdc = picture.getGraphics();

public static void main(String[] args) {
Client client = new Client();

}

public Client() {
mainPaintJPanl = new MainPaintJPanl();
chatPanel = new ChatPanel();
this.setLayout(new BorderLayout());
this.setLocation(333 0);
this.setSize(960 600);
this.setVisible(true);
this.setResizable(false);
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
this.getContentPane().add(mainPaintJPanl);
this.getContentPane().add(chatPanel);
new Thread(new MyThread(this mainPaintJPanlsendFlag)).start();

}



}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-12-01 23:15  testTwo\
     文件         301  2012-11-21 21:36  testTwo\.classpath
     文件         383  2012-11-21 21:36  testTwo\.project
     目录           0  2012-11-21 21:36  testTwo\.settings\
     文件         629  2012-11-21 21:36  testTwo\.settings\org.eclipse.jdt.core.prefs
     目录           0  2013-05-31 01:03  testTwo\bin\
     目录           0  2013-05-31 01:03  testTwo\bin\Client\
     文件        1553  2013-05-31 01:03  testTwo\bin\Client\Client.class
     文件        3066  2012-11-21 22:07  testTwo\bin\hero1.gif
     目录           0  2013-05-31 01:03  testTwo\bin\images\
     文件        3066  2012-12-01 23:16  testTwo\bin\images\hero1.gif
     文件        5346  2013-01-04 04:54  testTwo\bin\images\moreColor.jpg
     文件        1600  2012-11-24 21:38  testTwo\bin\images\pencil.jpg
     目录           0  2013-05-31 01:03  testTwo\bin\paint\
     文件         464  2013-05-31 01:03  testTwo\bin\paint\ChatPanel$1.class
     文件        1410  2013-05-31 01:03  testTwo\bin\paint\ChatPanel$recvThread.class
     文件        1951  2013-05-31 01:03  testTwo\bin\paint\ChatPanel$TFListener.class
     文件        2956  2013-05-31 01:03  testTwo\bin\paint\ChatPanel.class
     文件        1100  2013-05-31 01:03  testTwo\bin\paint\Draw.class
     文件         741  2013-05-31 01:03  testTwo\bin\paint\DrawLine.class
     文件        1112  2013-05-31 01:03  testTwo\bin\paint\DrawRectangle.class
     文件        1299  2013-05-31 01:03  testTwo\bin\paint\MainPaintJPanl$1.class
     文件        1214  2013-05-31 01:03  testTwo\bin\paint\MainPaintJPanl$2.class
     文件        6536  2013-05-31 01:03  testTwo\bin\paint\MainPaintJPanl.class
     文件         838  2013-05-31 01:03  testTwo\bin\paint\MyThread.class
     文件         752  2013-05-31 01:03  testTwo\bin\paint\ToolJPanl$1.class
     文件         755  2013-05-31 01:03  testTwo\bin\paint\ToolJPanl$10.class
     文件         754  2013-05-31 01:03  testTwo\bin\paint\ToolJPanl$11.class
     文件         754  2013-05-31 01:03  testTwo\bin\paint\ToolJPanl$12.class
     文件         754  2013-05-31 01:03  testTwo\bin\paint\ToolJPanl$13.class
     文件         754  2013-05-31 01:03  testTwo\bin\paint\ToolJPanl$14.class
............此处省略36个文件信息

评论

共有 条评论