求JAVA聊天室代码

来源:百度知道 编辑:UC知道 时间:2024/09/27 06:02:36
类似QQ界面的只要有上线和离线.退出还有隐藏功能

太多了把 怎么发。。。迷茫 一个一个来把 自己组织把 嘿嘿 第一个
package ycf.client.frame;

import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import java.awt.Rectangle;
import java.util.Date;

import javax.swing.JTextArea;
import javax.swing.JButton;
import javax.swing.JToolBar;

import ycf.client.service.ClientChat;
import ycf.client.service.ClientConn;
import ycf.client.service.ClientDisConn;
import ycf.publicclass.ToolsClass;
import ycf.publicclass.User;

import javax.swing.JMenuItem;
import javax.swing.JList;
import javax.swing.JLabel;
import javax.swing.JCheckBox;

public class Client_F extends JFrame
{
private Thread newthread = null;
private User newuser = null;
private ClientChat newchat = null;
private ClientDisConn disconn = null;
private ClientConn conn = null;
private Date currentdate = new Date(); // @jve: