---
title: "Swing HTML显示组件"
author: "sole"
date: "2008-07-17T10:33:40Z"
tags: []
slug: "swing-html"
draft: false
lastmod: "2008-07-17T10:33:40Z"
id: 215676
url: "https://hex.iteye.com/blog/215676"
---

Java Swing本身没有提供好的html显示组件，而且也不能像SWT那样嵌入本地浏览器。

但有很多的项目是试着去解决这个问题：

 

## [The List]()

[ProductLicenseFeaturesFailings HTMLEditorKit built in this is built into swing, so it requires no download, it has support for embedded swing components doesn't handle recent html or css2 ICEBrowser![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) commercial active dev, mature, was in Netbeans, can be used as a light weight component WebWindow![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) commercial   one developer doc, no forums or tutorials WebRenderer![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) commercial active dev, makes use of native IE, Mozilla or Safari, provides full access to DOM, DOM events, and HTTP transactions, it is now a lightweight component NetClue![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) commercial supports XML/XHTML, SSL some problems with Javascript Multivalent![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) BSD decent HTML rendering no CSS support JRex![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) MPL supports Mozilla 1.4+, JDK 1.4+, nice docs hard to integrate in application, may not work on Mac Java Extensible Web Browser![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) open   alpha stage, HTML render is not good, no support for js or css IECanvas![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) open Can embed IE or Mozilla only as a heavy weight component Grand Rapid![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) commercial   ridiculous licensing Jazilla![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) open   barely supports HTML![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) NetBeans web browser![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) open   stagnant since 02 Mozilla WebClient![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) MPL gives Java control![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) stagnant since Sep '03![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) Calyente![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) open a java.net project spare support![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) of HTML HotJava![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) Free from Sun supports Netscape 4.0 no src avail, no longer in development NetPistuer![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) GPL   no active development WebKit embedded with CocoaComponent![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) open Mac OSX only looks solid JDIC Browser![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) LGPL Uses native browser on each platform Mac support not there yet Flying Saucer![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) LGPL Pure Java Requires XHTML content MozSwing![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) LGPL,MPL,GPL Provides access to DOM and JavaXPCOM methods, code located at http://sf.net.projects/mozswing![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) native component so overlapping embedding in a scroll pane is a problem Native Swing![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) LGPL Uses SWT, handles overlapping components on windows Uses SWT so it won't work on OSX![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) until SWT is ported to Cocoa![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) JWebPane![](http://hex.iteye.com/confluence/images/icons/linkext7.gif) ? uses webkit, might be built into jdk7, lightweight not available yet, might only be available in jdk7]()