看到很多人热衷于模仿QQ,这里也分享一个以前用Swing写的仿QQ程序,程序实现了UDP协议的局域网内聊天,语音聊天,视频聊天,QQ截图,皮肤设定,做的比较粗糙,数据库用的是smallsql。
源代码:http://download.csdn.net/detail/shishui5271314/5827137
github: https://github.com/yangshangshe/SwingQQ2011
登录界面:
登录中。。。
截图。。。
皮肤设定。。。
聊天。。。
视频请求聊天。。。
好友列表。。。
1.项目的编码方式是GBK.
2.如果运行服务端出现如下异常:
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
请修改hibernate.cfg.xml中
“http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd“
替换为正确的DTD路径 http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
其他三个*.hbm.xml中"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"替换为"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
3.如果要视频聊天的话,请安装JMF