• 大小: 22KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 语言: Java
  • 标签: java  

资源简介

本程序提供登陆,调用数据库的账号密码进行验证,登陆聊天室,进行多线程通讯

资源截图

代码片段和文件信息

package zard.xx.gly.liantianshi;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.*;

import javax.swing.*;

public class ChatClient extends Jframe {

private static final long serialVersionUID = 1L;
private JTextArea jtextarea;
private JTextField jtextfield;
private OutputStream os = null;
private InputStream is = null;
private Socket socket = null;
private DataOutputStream dos = null;
private DataInputStream dis = null;
boolean beConnected = false;
String name2 = null;

/**
 * 生成GUI
 */
public ChatClient(String name) {
sup

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

     文件        475  2015-06-11 23:45  Cleint\.classpath

     文件        382  2015-06-11 22:16  Cleint\.project

     文件        629  2015-06-11 22:16  Cleint\.settings\org.eclipse.jdt.core.prefs

     文件       1836  2015-06-17 19:58  Cleint\bin\zard\xx\gly\liantianshi\ChatClient$JTextFieldListener.class

     文件       1601  2015-06-17 19:58  Cleint\bin\zard\xx\gly\liantianshi\ChatClient$ReceiveZ.class

     文件       3507  2015-06-17 19:58  Cleint\bin\zard\xx\gly\liantianshi\ChatClient.class

     文件       3163  2015-06-17 19:46  Cleint\bin\zard\xx\gly\liantianshi\ChatServer$Client.class

     文件       2140  2015-06-17 19:46  Cleint\bin\zard\xx\gly\liantianshi\ChatServer.class

     文件       2090  2015-06-12 00:24  Cleint\bin\zard\xx\gly\liantianshi\DBTools.class

     文件       2015  2015-06-17 19:54  Cleint\bin\zard\xx\gly\liantianshi\DB_Dao.class

     文件         96  2015-06-11 23:54  Cleint\bin\zard\xx\gly\liantianshi\jdbc.properties

     文件       2527  2015-06-17 21:05  Cleint\bin\zard\xx\gly\liantianshi\Login$btnListener.class

     文件        840  2015-06-17 21:05  Cleint\bin\zard\xx\gly\liantianshi\Login$JLabelListener.class

     文件       1126  2015-06-17 21:05  Cleint\bin\zard\xx\gly\liantianshi\Login$JLbelListener2.class

     文件       1107  2015-06-17 21:05  Cleint\bin\zard\xx\gly\liantianshi\Login$JLbelListener3.class

     文件       4096  2015-06-17 21:05  Cleint\bin\zard\xx\gly\liantianshi\Login.class

     文件        650  2015-06-12 00:54  Cleint\bin\zard\xx\gly\liantianshi\TestDemo.class

     文件       1386  2015-06-12 00:08  Cleint\bin\zard\xx\gly\liantianshi\User.class

     文件       2797  2015-06-17 19:58  Cleint\src\zard\xx\gly\liantianshi\ChatClient.java

     文件       3196  2015-06-17 19:46  Cleint\src\zard\xx\gly\liantianshi\ChatServer.java

     文件       1426  2015-06-12 00:24  Cleint\src\zard\xx\gly\liantianshi\DBTools.java

     文件       1030  2015-06-17 19:54  Cleint\src\zard\xx\gly\liantianshi\DB_Dao.java

     文件         96  2015-06-11 23:54  Cleint\src\zard\xx\gly\liantianshi\jdbc.properties

     文件       4096  2015-06-17 21:05  Cleint\src\zard\xx\gly\liantianshi\Login.java

     文件        188  2015-06-12 00:54  Cleint\src\zard\xx\gly\liantianshi\TestDemo.java

     文件        743  2015-06-12 00:08  Cleint\src\zard\xx\gly\liantianshi\User.java

     目录          0  2015-06-18 13:45  Cleint\bin\zard\xx\gly\liantianshi

     目录          0  2015-06-18 13:45  Cleint\src\zard\xx\gly\liantianshi

     目录          0  2015-06-18 13:45  Cleint\bin\zard\xx\gly

     目录          0  2015-06-18 13:45  Cleint\src\zard\xx\gly

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

评论

共有 条评论