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
  • 335,521
  • 76
  • 467
  • 706
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
  • 22,853
  • 21
  • 88
  • 148
1

If you want pure java solution, try Lobo.

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

dacracot
  • 21,372
  • 26
  • 104
  • 151
J-16 SDiZ
  • 25,723
  • 3
  • 63
  • 83
1

Flying Saucer is small and renders pretty well regular HTML pages

adrian.tarau
  • 3,085
  • 2
  • 25
  • 29
0

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

Robert Munteanu
  • 65,183
  • 33
  • 198
  • 275
0

I got another one

The Lobo Project - Open Source

willcodejavaforfood
  • 41,736
  • 17
  • 78
  • 110
0

You can use mozswing. It works.

Geo
  • 89,506
  • 114
  • 330
  • 511