14

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

Community
  • 1
  • 1

8 Answers8

10

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.

Michael Borgwardt
  • 342,105
  • 78
  • 482
  • 720
3

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

1

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

Horcrux7
  • 23,758
  • 21
  • 98
  • 156
1

If you want pure java solution, try Lobo.

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

dacracot
  • 22,002
  • 26
  • 104
  • 152
J-16 SDiZ
  • 26,473
  • 4
  • 65
  • 84
1

Flying Saucer is small and renders pretty well regular HTML pages

adrian.tarau
  • 3,124
  • 2
  • 26
  • 29
0

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

Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
0

I got another one

The Lobo Project - Open Source

willcodejavaforfood
  • 43,223
  • 17
  • 81
  • 111
0

You can use mozswing. It works.

Geo
  • 93,257
  • 117
  • 344
  • 520