1、 毕业设计说明书 手机聊天室设计与开发 学生姓名: 学号: 学 院: 专 业: 指导教师: 2011 年 6 月 第 2 页 共 20 页 手 机 聊 天 室 设 计 与 开 发 摘 要 网络聊天室是一种应用广泛网络聊天方式,操作简单,功能丰富,是教学和学 习面向对象的编程思想的理想项目。 可以使用多种编程语言设计和开发出功能完善 的网络聊天室。 本毕业设计论文介绍用 JAVA 语言设计和实现一个手机网络聊天室的过程,本 系统采用 C/S 架构设计,整个项目分为服务器端和客户端。使用了最新的 Java 2 标准 Swing 组件,开发出简洁美观和布局合理的用户和服务器界面;利用 Socket
2、网络开发技术实现客户端和服务器端的连接访问,实现网络功能;通过对数据流操 作的合理设计,实现信息传递、接受和数据保存。同时,采用多线程、多任务的设 计思想,开发出性能稳定,功能全面的服务器。完整的实现系统的功能。 通过本次毕业设计可以学到如何应用和实现面向对象的各种方法,如何使用 Eclipse 集成开发环境来创建和开发项目,从而完成系统的完整开发。 关键词:关键词:聊天室;Java;应用程序;Swing 组件;Socket 技术 第 3 页 共 20 页 Design and development of mobile chat rooms AbstractAbstract The netw
3、ork chat room is a kind of applied extensive network chat method, operate in ease and the function is abundant, It can be used as a good case for learning of java design language and the Object-Oriented Programming language, There is many programming language of design to develop a network chat room
4、 with perfect function. This graduation thesis of design introduction how to use the java language design and carry out network chat room, The system adoption the C/ S structure design, the whole system is divided into the server and client .Used standard modules of Swing of latest Java2, develop a
5、simple and direct beauty user interface ,We make use of the Socket technology to interconnect the server and client by net-work ;organize the data by good design of data stream to sent or accept the message between users and to record the message for ever; we also use the multi-thread multi-action t
6、o make the program with many function. I have leaned many method and things to use the Object-Oriented Programming. And make me know how use the development environment Eclipse to new program and the process to make the program. Keyword:Keyword: chat;Java;application;swing component;socket 第 4 页 共 20 页 目目 录录 1 引言 6 2 需求分析. 6 21 编写目的 . 6 22 研究背景 . 6 23 定义 7 24 任务概述 . 7 2.4.1 开发目标 . 7 2.4.2 应用目标 . 7 25 功能需求 . 7 2.5.1 功能描述 . 7 26 相