JAVA英文词典的设计与实现

单词类型统计功能既可以统计数据量巨大的单词库中的所有单词单词类型分布比例也可以统计本用户的生词本单词统计


摘要: 本项目主要是设计并实现一种英文电子词典,英语被广泛应用在各行各业中,英语学习一直是学生、国外企业和研究机构的必要性是必不可少的,同时,由于移动互联网不断的在发展,移动电子词典的发展机会也随之渐渐诞生。本设计是开发一款英文电子词典系统,要求能够实现中英文互查;界面的布局人性化、简洁美观;能基本实现本地查词模块(用户可以通过英文查到中文等信息,同时可以通过中文单词查到英文翻译)、单词发音模块、生词本管理模块、词典导入、用户设置模块;;最后能够对词库进行管理,即增删改。本设计中最大的难点是机器发音的实现,由于JAVA自带的媒体播放方法不支持MP3、MP4的音频格式,所以需要自己写一个播放音频方法,在该方法中将音频路径设为参数,通过在发音动作事件中调用这个方法实现机器发音的功能,从而让英语学习者可以在查词的同时可以听到单词的发音,有助于英语听说能力的提高。

关键词: Java;电子词典;英文;机器发音

English Title Here

Abstract: This project is mainly designed and implemented an English electronic dictionary. English is widely used in all walks of life. English learning has always been an indispensable requirement for students, foreign business people and research groups. At the same time, the popularity of the mobile Internet is a mobile phone. The development of electronic dictionaries provided an opportunity. This design is to develop an English electronic dictionary system that requires the ability to check each other in both Chinese and English. The interface is friendly and simple in design. It can basically implement the local search module, machine pronunciation module, collection module, and user setting module; Management, that is, additions and deletions. The biggest difficulty in this design is the implementation of the machine's pronunciation. Since JAVA's own media playback method does not support MP3 and MP4 audio formats, it is necessary to write a play audio method. In this method, the audio path is set as a parameter. This method is called to implement the machine's pronunciation function in the pronunciation action event, so that the English learner can hear the pronunciation of the word while checking the word, which contributes to the improvement of English listening and speaking ability.

Keywords: Java;E-dictionary;English; Machine pronunciation

目录

摘要 i

Abstract ii

目录 iv

1 绪论 1

1.1 课题的目的和意义 1

1.2 国内外研究现状与水平 2

1.3 发展趋势 2

1.4 技术简介 3

1.4.1 JAVA swing简介 3

1.4.2 开发环境 3

1.4.3 SQL Server2008 R2 3

2 系统需求 5

2.1 需求分析 5

2.1.1 功能需求 5

2.1.2 安全性需求 6

2.2 系统的功能列表 6

2.3 系统结构化分析 8

2.4 系统数据需求 8

2.4.1 数据流 8

2.4.2 数据储存 10

3 数据库设计 12

3.1 后台数据库设计 12

3.1.1 用户表 12

3.1.2 单词表 12

3.1.3 生词表 13

4 总体设计 14

4.1 系统功能模块设计 14

4.2 界面的设计与实现 14

4.2.1 用户登录与注册的主界面 14

4.2.2 英汉单词互译的主界面 16

4.2.3 单词增删改的界面 17

4.2.4 单词发音界面 18

4.2.5 生词本界面 18

4.2.6 统计分析界面 19

4.2.7 词典导入界面 20

5 程序详细设计 21

5.1 主界面设计以及实现事件处理代码 21

5.1.1 功能描述 21

5.1.2 功能实现原理 21

5.2 数据库连接 22

5.3 用户登录和注册的实现 22

5.3.1 登录功能描述 22

5.3.2 登录功能实现原理 22

5.3.3 注册功能描述 23

5.3.4 注册功能实现原理 23

5.4 切换用户的实现 23

5.4.1 切换用户功能描述 23