文件名称:java聊天工具源代码
文件大小:12KB
文件格式:RAR
更新时间:2018-07-06 07:11:58
java聊天室
import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import javax.swing.*; import javax.swing.border.TitledBorder; import javax.swing.event.*; public class ChatServer extends JFrame { // used to read Username and Password from users.data file private final String fileName = "users.data"; private final String logFileName = "Server.log"; private FileReader readConnToFile; private BufferedReader readUser; private PrintWriter printLog, printUser; // store users and passwords private Hashtable userPwds = new Hashtable(); private Vector usersOnline = new Vector(); private Vector usersDisOnline = new Vector(); private long clickTime=0;
【文件预览】:
Cha
----users.data(40B)
----User.java(588B)
----ChatServer.java(12KB)
----Server.java(7KB)
----ChatClient.java(10KB)
----ServerThread.java(1KB)
----LoginFrame.java(6KB)
----NewUser.java(2KB)