Tutorial :Embed a web browser within a java application [duplicate]



Question:

Possible Duplicate:
Is there a way to embed a browser in Java?

how can i embed a web browser within a java application?

Thanks, David


Solution: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

And a few more that don't seem to be under active development.


Solution:2

You could also try the JWebBrowser from DJ Native Swing: http://djproject.sourceforge.net/ns


Solution:3

Flying Saucer is small and renders pretty well regular HTML pages


Solution:4

If you need a pure Java solution then you can use JWebEngine. Its the best pure Java solution currently available.


Solution:5

If you want pure java solution, try Lobo.

Otherwise, you may use SWT / JRex or some other JNI-based product.


Solution:6

You can use SWT for this, here's a simple example.


Solution:7

I got another one

The Lobo Project - Open Source


Solution:8

You can use mozswing. It works.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »