Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Since JavaFX 2.0 you can use now webview

enter image description here


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.


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)


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.


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