Is there a way to embed a browser in Java? [closed]

Is there a way to embed a browser in Java? more specifically, is there a library that can emulate a browser?


Solution 1:

Since JavaFX 2.0 you can use now webview

enter image description here

Solution 2:

I believe JWebPane is going to be the official way to embed a browser into a java app. Its based on the open sourced engine - WebKit, which is used in Apples Safari and Googles Chrome browsers.See this blog for details.

Solution 3:

You may try this: https://jdic.dev.java.net/

alt text
(source: java.net)

Or this: http://lobobrowser.org/java-browser.jsp

alt text
(source: lobobrowser.org)

Solution 4:

You could use SWT for your GUI. Its Browser control allows you to embed IE, Mozilla or Safari (depending on the platform you're running in) with little pain.

Solution 5:

JxBrowser has not been mentionned yet. It embed either Mozilla Firefox (Gecko), Apple Safari (WebKit) or Internet Explorer. Programmer's Guide