1、 课程设计报告课程设计报告 CURRICULUM DESIGN REPORT (2014 2015 年) 题 目 基于 JAVA的局域网聊天系统开发 学 院: 信息工程学院 系 计算机科学与技术 专业班级: 计算机科学与技术 xxx 班 学生姓名: 学号: 指导教师: 职称: 起讫日期: 摘要 I 基于基于 JAVAJAVA 的局域网聊天系统开发的局域网聊天系统开发 摘要 随着计算机网络技术的发展,各种各样基于网络的应用也随之诞生,比如基 于互联网的信息发布,通信,数据共享等等。局域网的发展也同样迅速。很多政 府机构,企业,学校,都是先以一个统一的局域网联结在一起,再分别接入 INTERNET
2、.因此基于局域网的即时通信工具,就这样应运而生了。本文利用 JAVA 的 UDP 编程以及 SWING 图形界面编程技术,在 WINDOWS 平台上实现 了具有美观图形界面的局域网聊天软件. 在本实现内将客户端和服务端综合在一个程序之内, 用多线程实现不同的并 行任务。并模仿国内的 QQ 进行了人性化的界面设计,使用起来更加简单方便, 并且功能十分合理、实用。 通过本局域网聊天软件可以实现一对一、一对多的聊天,可以实现不同用户 不同的文字字体、风格、大小、颜色的发送和显示,提供发送表情、文件、好友 间的抖动提示以及聊天记录的管理等功能。 关 键 词 :关 键 词 : 局 域 网 聊 天 ; J
3、AVA网 络 编 程 ; UDP ; 多 线 程 Abstract II LAN Chat System Development based on JAVA Abstract With the development of computer network technology, various kinds of applications based on network were born, such as the release of information, communication, data sharing based on the Internet and so on. The
4、development of the LAN is also quick. Many government agencies, enterprises, schools, is the first in a unified network linked together, each with access to INTERNET. Thus Instant Communication Tools based on LAN were born. In this paper, by using JAVA UDP programming and SWING graphical interface p
5、rogramming technology, we can get a LAN chat software with beautiful appearance on the WINDOWS platform. In the implementation, the client and the server were integrated within a program, implemented with multithreading. And imitating the domestic QQ interface humanization design, using more simple
6、and convenient, and the function is very reasonable, practical. Through our LAN chat software can achieve one to one, one to many chat, send different users different text font, style, size, color and display, provide the send of expression, file, the shake among friends and chat records management and other functions. Keyword: LAN Chat ; JAVA network programming ; UDP; multi-thread 目录 目录目录 摘要 I Abstract . II