基于java的浏览器的设计与实现 下载本文

内容发布更新时间 : 2024/11/2 22:35:00星期一 下面是文章的全部内容请认真阅读。

基于java的浏览器的设计与实现——GUI界面子系统

摘 要

21世纪人们对互联网的依赖越来越大,而网页浏览器作为上网浏览信息所必需的软件之一,已经得到了广泛地应用。在IE占据了大部分浏览器市场的情况下,国内外开发商依然没有放弃这个巨大的市场,各式各样的浏览器被开发出来抢占市场。网页浏览器的开发与应用已成为了计算机领域近年来的一大热点。

本文用软件工程的开发过程,详细论述了浏览器的分析、设计及代码实现,最终实现一个具有能同时浏览多个网页,可查看收藏夹,可以实现打开网页,超链接监听并响应,前进和后退等基本功能的浏览器。 本文以一个实际运作的浏览器Browser为主轴介绍浏览器的设计理念与方法,同时讲述浏览器中各个模块如何互相协同运作,来完成一个呈现网页的工作。通过下载JDIC类库,实现了浏览器选项卡,从而达成了一个窗口显示多个网页的目的。收藏夹的实现是将收藏夹集合序列化到数据文件中,这样收藏夹被持久化解决了收藏夹的问题。另外,Java Swing技术也是本文介绍的浏览器所使用的一种主要的技术,通过使用各个组件,并增加监听器和事件处理等操作,最终形成一个具有一定事物处理能力的浏览器的界面部分。

关键词:浏览器,JDIC类库,Java Swing,事件

Based on the design and implementation of a Java browser

Abstract

In the 21st century, people rely on the Internet is more and more big, the web browser as one of the necessary software, surfing the Internet information has been widely used. In the case of occupying most of the IE browser market, developers still didn't give up the huge market at home and abroad, developed a variety of browser is preempted market. The development and application of web browser has become a focus in the computer field in recent years.

In the development process of software engineering, this paper detailed discusses the analysis, design and code implementation of the browser, and ultimately achieve a have to browse multiple web pages at the same time, to view the favorites, can realize open a webpage, hyperlinks to monitor and respond to, the basic function such as forward and backward in the browser. Based on an actual operation of the Browser Browser Browser design concept and method of introduction for main shaft, various modules tells the Browser how to work together with each other at the same time, to finish the work of a rendered page. By downloading the JDIC class library, the realization of the browser TAB, which reached the purpose of a window to display multiple web pages. The realization of the favorites are favorites collection serialized into a data file, this collection double coverlet persistent solved the problem of the favorites. In addition, the Java Swing technology is also introduced in this paper by the browser using a kind of main technology, through the use of the individual components, and adding listeners and event handling operations such as, eventually forming a certain things browser interface part of processing capacity.

Keywords:The browser,The JDIC class library,Java Swing,The event

目 录

1 引言 ................................................. 错误!未定义书签。 1.1 研究课题的目的和意义 ............................................... 1 1.2 国内外研究现状及发展趋势 ........................................... 1 1.3 本课题实现的目标 ................................................... 2 2 程序开发的基础 ........................................................ 3 2.1 Java技术 ........................................................... 3 2.1.1 Java概述 ........................................................... 3 2.1.2 Java平台简介 ....................................................... 3 2.1.3 JDIC项目简介 ....................................................... 4 2.2 GUI技术简介 ........................................................ 4 2.2.1 GUI的概述 .......................................................... 4 2.2.2 Swing 的概述 ....................................................... 5 2.2.3 Swing 的特点 ....................................................... 5 2.3 开发环境 ........................................................... 6 3 系统的总体分析 ....................................... 错误!未定义书签。 3.1 需求分析 ........................................................... 7 3.2 系统结构与设计分析 ................................................. 7 3.2.1 响应模式 ........................................................... 7 3.2.2 结构分析 ........................................................... 8 3.3 功能结构图 ......................................................... 8 4 系统功能与实现 ........................................................ 9 4.1 核心技术 ........................................................... 9 4.1.1 JDIC项目实现浏览器组件 ............................................ 9 4.1.2 收藏夹的保存与装载 ................................................ 10 4.1.3阻止IE打开弹出窗口 ................................................ 10 4.2 菜单栏的实现 ...................................................... 10

第 Ⅰ 页 共 Ⅱ 页