What is the best approach to put some web browser Panel on JFrame in JAVA application?
Asked
Active
Viewed 4,631 times
2 Answers
2
My suggestion would be to use JEditorPane
and its method setPage(url)
.
Take a look at this: How to use Editor Panes and Text Panes?

Harry Joy
- 58,650
- 30
- 162
- 207
-
What tool can I use to build GUI fast in Eclipse? – J.Olufsen Dec 13 '11 at 11:31
-
You need to have some GUI building plugin in your eclipse. That are number of plugins available out there, you can try them. I have not tried any of them so can't comment on that. This can help you decide: http://stackoverflow.com/questions/29426/best-gui-designer-for-eclipse – Harry Joy Dec 13 '11 at 11:34
-
I red in tutorial that it will only extract text form html page, but I need to display some images as well./ – J.Olufsen Dec 13 '11 at 12:22
-
@RCola It will also display images. http://www.google.co.in/search?aq=f&gcx=c&ix=c2&sourceid=chrome&ie=UTF-8&q=browser+in+swing – Harry Joy Dec 13 '11 at 12:26
2
I don't know any good web browser component for Swing. But JavaFX 2.0 has a web browser component, and you can embed JavaFx 2.0 components in a Swing application. See Adding HTML Content to JavaFX Applications

Jonas
- 121,568
- 97
- 310
- 388