java Swing在线聊天系统的设计与实现_毕业论文

毕业论文移动版

毕业论文 > 计算机论文 >

java Swing在线聊天系统的设计与实现

摘要:本文主要围绕即时交互性,界面美观,实用性的在线聊天系统的实现展开,介绍了系统的开发背景,即时聊天的意义和好处,以及当下趋势下的发展前景。本系统采用CS模式,即客户端服务器形式进行设计,采用java Swing技术进行界面设计,具有操作简单、易用方便的特性。37595
本系统开发主要包括一个服务器和一个客户程序两个方面。前者通过Socket套接字建立服务器,服务器能读取、转发客户端发来信息,并能刷新用户列表。后者通过与服务器建立连接,来进行客户端与客户端的信息交流。
所有信息和数据都保存在服务器上面,所以安全性得到了保证,而且也便于管理,客户端和服务器之间通过异步请求和响应的方式工作,客户端想到信息,就向服务器发送一个请求包,服务器收到包后会判断数据包的类型,从而对客户端做出不同的响应。
毕业论文关键词:网络,信息,服务器,客户端,Socket
The design and implementation of online chat system
Abstract: This article mainly around instant interactivity, interface aesthetics, practical implementation of online chat system, this paper introduces the system development background, the meaning and benefits of instant messaging, as well as the present trend of development prospects. This system adopts the CS mode, namely the client server form design, interface design using Java Swing technology, has the characteristics of simple operation, convenient and easy to use.
This system development mainly includes two aspects of the server procedure of the network chat and the customer procedure of the network chat. The former establishes the server through the Socket, the server can read and deliver the information which client side sends, and can renovate the users tabulation. The latter make a connection with the server, carries on communication between the client side and the client side.
All information and data are stored in the server, so safety guaranteed, and it’s easy to manage, a client and a server communicate through asynchronous request and response. If the client want to get information, then it sends a request packet to the server, the server receives the packet , it will judge the type of packet, so as to make a different response to the client.
Keywords:    network; information; server; client; socket
目录
1    绪论    1
1.1    课题的目的和意义    1
1.1.1    本课题目的    1
1.1.2    本课题意义    1
1.2    国内外研究现状与水平    2
1.3    发展趋势    2
1.3.1    QQ聊天工具    2
1.3.2    飞信聊天工具    3
1.3.3    MSN聊天工具    4
2    开发环境的选择    5
2.1.1    开发技术    5
2.1.2    开发工具的选择    6
3    需求分析    8
3.1    系统概况    8
3.2    系统功能分析    9
3.3    统详细框架设计    10
3.4    界面需求    13
3.5    数据库需求    13
3.6    SOCKET的原理    14
4    系统设计    15
4.1    客户端设计    15
4.1.1    用户注册    15
4.1.2    用户登录    16
4.1.3    显示好友列表    18 (责任编辑:qin)