Possible Duplicate:
Is there a way to embed a browser in Java?可能重复:有没有办法在Java中嵌入浏览器?
how can i embed a web browser within a java application?
如何在Java应用程序中嵌入Web浏览器?
Thanks, David
8 个解决方案
#1
There are a number of alternatives:
有很多选择:
- JEditorPane - included in the JRE, but only renders simple HTML
- JDIC - open source, embeds native browser
- ICEBrowser - commercial, renders the HTML in Java
- WebRenderer - commercial, embeds native browser in Java
JEditorPane - 包含在JRE中,但只呈现简单的HTML
JDIC - 开源,嵌入本机浏览器
ICEBrowser - 商业化,用Java呈现HTML
WebRenderer - 商业化,在Java中嵌入本机浏览器
And a few more that don't seem to be under active development.
还有一些似乎没有积极发展。
#2
You could also try the JWebBrowser from DJ Native Swing: http://djproject.sourceforge.net/ns
您也可以尝试DJ Native Swing的JWebBrowser:http://djproject.sourceforge.net/ns
#3
Flying Saucer is small and renders pretty well regular HTML pages
Flying Saucer很小,可以很好地呈现常规的HTML页面
#4
If you need a pure Java solution then you can use JWebEngine. Its the best pure Java solution currently available.
如果您需要纯Java解决方案,那么您可以使用JWebEngine。它是目前最好的纯Java解决方案。
#5
If you want pure java solution, try Lobo.
如果您想要纯Java解决方案,请尝试Lobo。
Otherwise, you may use SWT / JRex or some other JNI-based product.
否则,您可以使用SWT / JRex或其他一些基于JNI的产品。
#1
There are a number of alternatives:
有很多选择:
- JEditorPane - included in the JRE, but only renders simple HTML
- JDIC - open source, embeds native browser
- ICEBrowser - commercial, renders the HTML in Java
- WebRenderer - commercial, embeds native browser in Java
JEditorPane - 包含在JRE中,但只呈现简单的HTML
JDIC - 开源,嵌入本机浏览器
ICEBrowser - 商业化,用Java呈现HTML
WebRenderer - 商业化,在Java中嵌入本机浏览器
And a few more that don't seem to be under active development.
还有一些似乎没有积极发展。
#2
You could also try the JWebBrowser from DJ Native Swing: http://djproject.sourceforge.net/ns
您也可以尝试DJ Native Swing的JWebBrowser:http://djproject.sourceforge.net/ns
#3
Flying Saucer is small and renders pretty well regular HTML pages
Flying Saucer很小,可以很好地呈现常规的HTML页面
#4
If you need a pure Java solution then you can use JWebEngine. Its the best pure Java solution currently available.
如果您需要纯Java解决方案,那么您可以使用JWebEngine。它是目前最好的纯Java解决方案。
#5
If you want pure java solution, try Lobo.
如果您想要纯Java解决方案,请尝试Lobo。
Otherwise, you may use SWT / JRex or some other JNI-based product.
否则,您可以使用SWT / JRex或其他一些基于JNI的产品。
#6
You can use SWT for this, here's a simple example.
您可以使用SWT,这是一个简单的例子。
#7
#8
You can use mozswing. It works.
你可以使用mozswing。有用。