兴趣是坚持一件事永不衰竭的动力
发布时间:2015-11-24 23:47:21
package com.ddChat.graphic;public class Config{public final static int MIN_TICK_COUNT = 3;public final static int MAX_TICK_COUNT = 5;public final static int GRAPHIC_SCREEN_WHITH = 400;public final static int GRAPHIC_SCREEN_HEIGHT = 300;public final static int TICK_INTERVAL_BASE[] = {1,2,5};.........【阅读全文】
发布时间:2015-11-19 00:04:01
package com.ddChat.dao;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import com.ddChat.model.UserInfoModel;public class UserInfoDao{public UserInfoDao(){}public int userInfoAdd(Connection con,UserInfoModel userInfo) throws Exception .........【阅读全文】
发布时间:2015-11-19 00:02:48
package com.ddChat.dao;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import com.ddChat.model.User;public class UserDao{ private User user; /** * 登录验证 .........【阅读全文】
发布时间:2015-11-19 00:00:55
package com.ddChat.utils;import java.sql.Connection;import java.sql.DriverManager;public class DbUtil{ public DbUtil() { super(); // TODO Auto-generated constructor stub }&n.........【阅读全文】
发布时间:2015-11-18 23:58:00
package com.test.view;import java.net.*;import java.io.*;public class ChatSocket{private ChatJFrame chatframe; // 聊天室的图形用户界面private Socket client; // 客户端Socket对象public ChatSocket(String host, int port, String name) // 主机名、端口号、网名{try{client = new Socket(host,.........【阅读全文】