在Java应用程序中嵌入Web浏览器[重复]

时间:2021-08-30 12:33:38

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
  • JEdi​​torPane - 包含在JRE中,但只呈现简单的HTML

  • JDIC - open source, embeds native browser
  • JDIC - 开源,嵌入本机浏览器

  • ICEBrowser - commercial, renders the HTML in Java
  • ICEBrowser - 商业化,用Java呈现HTML

  • WebRenderer - commercial, embeds native browser in Java
  • 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


I got another one

我又来了一个

The Lobo Project - Open Source

Lobo项目 - 开源

#8


You can use mozswing. It works.

你可以使用mozswing。有用。

#1


There are a number of alternatives:

有很多选择:

  • JEditorPane - included in the JRE, but only renders simple HTML
  • JEdi​​torPane - 包含在JRE中,但只呈现简单的HTML

  • JDIC - open source, embeds native browser
  • JDIC - 开源,嵌入本机浏览器

  • ICEBrowser - commercial, renders the HTML in Java
  • ICEBrowser - 商业化,用Java呈现HTML

  • WebRenderer - commercial, embeds native browser in Java
  • 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


I got another one

我又来了一个

The Lobo Project - Open Source

Lobo项目 - 开源

#8


You can use mozswing. It works.

你可以使用mozswing。有用。