实例介绍
采用TCP协议开发的,swing做界面的java socket聊天室 支持群聊和私聊,发文件,以及用户登录注册等
【实例截图】
【核心代码】
源码
├── Client
│ ├── build
│ │ ├── built-jar.properties
│ │ └── classes
│ │ ├── CT.class
│ │ ├── ContentPanel.class
│ │ ├── DemoUI.class
│ │ ├── ST$1.class
│ │ ├── ST.class
│ │ ├── cn
│ │ │ └── scau
│ │ │ ├── chatService
│ │ │ │ ├── Client$1.class
│ │ │ │ ├── Client$2.class
│ │ │ │ ├── Client$3.class
│ │ │ │ ├── Client$4.class
│ │ │ │ ├── Client$5.class
│ │ │ │ ├── Client$6.class
│ │ │ │ ├── Client$7.class
│ │ │ │ ├── Client$8.class
│ │ │ │ ├── Client$9.class
│ │ │ │ ├── Client$MessageThread.class
│ │ │ │ ├── Client.class
│ │ │ │ └── UserService.class
│ │ │ ├── chatUI
│ │ │ │ ├── ClientUI$1.class
│ │ │ │ ├── ClientUI.class
│ │ │ │ ├── EmotUI$1.class
│ │ │ │ ├── EmotUI.class
│ │ │ │ ├── ImagePanel.class
│ │ │ │ ├── PrivateChatUI.class
│ │ │ │ ├── ProgressBar.class
│ │ │ │ ├── ServerNoticeUI.class
│ │ │ │ ├── UpdateUI$1.class
│ │ │ │ ├── UpdateUI.class
│ │ │ │ ├── loginPane.class
│ │ │ │ ├── loginUI$1.class
│ │ │ │ ├── loginUI.class
│ │ │ │ ├── registerUI$1.class
│ │ │ │ └── registerUI.class
│ │ │ ├── controler
│ │ │ │ └── Login_Register.class
│ │ │ ├── dao
│ │ │ │ └── UserDao.class
│ │ │ ├── exception
│ │ │ │ └── UserException.class
│ │ │ ├── model
│ │ │ │ ├── BagTarget.class
│ │ │ │ ├── ChatData.class
│ │ │ │ ├── DataBag.class
│ │ │ │ ├── Emot.class
│ │ │ │ ├── FileClientThread$1.class
│ │ │ │ ├── FileClientThread.class
│ │ │ │ ├── FileServerThread$1.class
│ │ │ │ ├── FileServerThread.class
│ │ │ │ └── User.class
│ │ │ └── util
│ │ │ ├── ClientUtil.class
│ │ │ ├── DBUtil.class
│ │ │ ├── DBproperties.properties
│ │ │ ├── FileTrans.properties
│ │ │ ├── NumberUtil.class
│ │ │ ├── UIUtil.class
│ │ │ ├── propertiesUtil.class
│ │ │ └── userPro.properties
│ │ ├── test.class
│ │ ├── testFile.class
│ │ ├── testJProgressBar$1.class
│ │ ├── testJProgressBar.class
│ │ ├── testJlist$1.class
│ │ └── testJlist.class
│ ├── build.xml
│ ├── dist
│ │ ├── Client.jar
│ │ ├── README.TXT
│ │ └── lib
│ │ ├── jai-imageio-1.1.jar
│ │ ├── mysql-connector-java-5.1.23-bin.jar
│ │ └── substance.jar
│ ├── img
│ │ ├── 20141122114004218.jpg
│ │ ├── 659860646721440526.jpg
│ │ ├── balala.jpg
│ │ ├── cat.png
│ │ ├── earth.gif
│ │ ├── frame.jpg
│ │ ├── littlestar.gif
│ │ ├── star.gif
│ │ ├── test.gif
│ │ ├── white.jpg
│ │ ├── yellow.jpg
│ │ └── yes.png
│ ├── manifest.mf
│ ├── nbproject
│ │ ├── build-impl.xml
│ │ ├── genfiles.properties
│ │ ├── private
│ │ │ ├── private.properties
│ │ │ └── private.xml
│ │ ├── project.properties
│ │ └── project.xml
│ ├── src
│ │ ├── CT.java
│ │ ├── DemoUI.java
│ │ ├── ST.java
│ │ ├── cn
│ │ │ └── scau
│ │ │ ├── chatService
│ │ │ │ ├── Client.java
│ │ │ │ └── UserService.java
│ │ │ ├── chatUI
│ │ │ │ ├── ClientUI.java
│ │ │ │ ├── EmotUI.java
│ │ │ │ ├── PrivateChatUI.java
│ │ │ │ ├── ProgressBar.java
│ │ │ │ ├── ServerNoticeUI.java
│ │ │ │ ├── UpdateUI.java
│ │ │ │ ├── loginUI.java
│ │ │ │ └── registerUI.java
│ │ │ ├── controler
│ │ │ │ └── Login_Register.java
│ │ │ ├── dao
│ │ │ │ └── UserDao.java
│ │ │ ├── exception
│ │ │ │ └── UserException.java
│ │ │ ├── model
│ │ │ │ ├── BagTarget.java
│ │ │ │ ├── ChatData.java
│ │ │ │ ├── DataBag.java
│ │ │ │ ├── Emot.java
│ │ │ │ ├── FileClientThread.java
│ │ │ │ ├── FileServerThread.java
│ │ │ │ └── User.java
│ │ │ └── util
│ │ │ ├── ClientUtil.java
│ │ │ ├── DBUtil.java
│ │ │ ├── DBproperties.properties
│ │ │ ├── FileTrans.properties
│ │ │ ├── NumberUtil.java
│ │ │ ├── UIUtil.java
│ │ │ ├── propertiesUtil.java
│ │ │ └── userPro.properties
│ │ ├── test.java
│ │ ├── testFile.java
│ │ ├── testJProgressBar.java
│ │ └── testJlist.java
│ └── test
│ └── test
│ └── testJTextArea.java
└── Server
├── build
│ ├── built-jar.properties
│ └── classes
│ └── cn
│ └── scau
│ ├── dao
│ │ └── UserDao.class
│ ├── exception
│ │ └── UserException.class
│ ├── model
│ │ ├── BagTarget.class
│ │ ├── ChatData.class
│ │ ├── DataBag.class
│ │ ├── Emot.class
│ │ ├── FileClientThread.class
│ │ └── User.class
│ ├── server
│ │ ├── LoginChk.class
│ │ ├── Server$1.class
│ │ ├── Server$2.class
│ │ ├── Server$3$1.class
│ │ ├── Server$3$2.class
│ │ ├── Server$3.class
│ │ ├── Server$4.class
│ │ ├── Server$5.class
│ │ ├── Server$6.class
│ │ ├── Server$ClientThread.class
│ │ ├── Server$ServerThread.class
│ │ └── Server.class
│ ├── serverUI
│ │ ├── ImagePanel.class
│ │ ├── PrivateChatUI$1.class
│ │ ├── PrivateChatUI.class
│ │ ├── ServerList.class
│ │ ├── ServerUi$1.class
│ │ ├── ServerUi.class
│ │ ├── SetUI$1.class
│ │ ├── SetUI.class
│ │ ├── loginPane.class
│ │ ├── loginUI$1.class
│ │ └── loginUI.class
│ └── util
│ ├── DBUtil.class
│ ├── DBproperties.properties
│ ├── FileTrans.properties
│ ├── NumberUtil.class
│ ├── ServerUtil.class
│ ├── UIUtil.class
│ └── propertiesUtil.class
├── build.xml
├── dist
│ ├── README.TXT
│ ├── Server.jar
│ └── lib
│ ├── jai-imageio-1.1.jar
│ ├── mysql-connector-java-5.1.23-bin.jar
│ └── substance.jar
├── img
│ ├── 17cb44b80768dbaaad09cfafa008ee21.gif
│ ├── balala.jpg
│ ├── cat.png
│ ├── earth.gif
│ ├── frame.jpg
│ ├── littlestar.gif
│ ├── star.gif
│ ├── white.jpg
│ ├── yellow.jpg
│ └── yes.png
├── manifest.mf
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ │ ├── config.properties
│ │ ├── private.properties
│ │ └── private.xml
│ ├── project.properties
│ └── project.xml
└── src
└── cn
└── scau
├── dao
│ └── UserDao.java
├── exception
│ └── UserException.java
├── model
│ ├── BagTarget.java
│ ├── ChatData.java
│ ├── DataBag.java
│ ├── Emot.java
│ ├── FileClientThread.java
│ └── User.java
├── server
│ ├── LoginChk.java
│ └── Server.java
├── serverUI
│ ├── PrivateChatUI.java
│ ├── ServerList.java
│ ├── ServerUi.java
│ ├── SetUI.java
│ └── loginUI.java
└── util
├── DBUtil.java
├── DBproperties.properties
├── FileTrans.properties
├── NumberUtil.java
├── ServerUtil.java
├── UIUtil.java
└── propertiesUtil.java
54 directories, 205 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论