一款基于java的仿QQ的即时通信应用
a simple java application copy QQ
应用截图如下
the snapshot of the application
先运行Tecent_Server
firstly run the Tecent_Server
然后点击增加成员按钮
then click the button like
接着点击开启按钮
then click the button like
可以看到如下界面
you will see the following image
记住IP地址
remember the ip address
运行Tecent_Beta
run the Tecent_Beta
确认IP地址与服务器一致,后点击确认后你会看到登陆界面
after making sure that the ip address is the same as the server, click the confirm button, you will see the login interface
点击头像位置可以选择头像
click the position of avatar you can select other avatars
后按照服务器端的用户列表填写用户名和对应的密码
then type in the username and password according to the user list of the server interface
点登陆后会进入主界面
after clicking the confirm button you will see the main interface
然后多运行Tecent_Beta两次再登陆两个账号
then run Tecent_Beta twice to login in two other accounts
接下来可以一对一聊天了
then you can chat with others who have logined on one by one
或者群聊
or use the group chat function
还可以传文件(直接将文件拖到聊天窗口即可),文件默认存储于F盘
what's more you can transfer the file using this application(just drag the target file into the chat window), and the default receiver address is on F drive
由于本应用只是练手,所以网络连接方式采用了RMI和Socket两种方式,详情见代码
because this application is a train demo, the internet connection is based on the RMI and socket, the more details are shown in the codes
jar文件夹里打包成的jar可以直接运行,也是要先运行Tecent_Server.jar后再运行Tecent_Beta.jar
the .jar application in jar folder can run straightly, but note that you should run the Tecent_Server.jar firstly then run the Tecent_Beta.jar