WebKit browser in Java app on multiple platforms

回眸只為那壹抹淺笑 提交于 2019-12-17 23:46:10

问题


I'm trying to embed a WebKit browser in my Java app. I insist on WebKit, because I don't want to test my HTML5/CSS/Javascript with every browser that, for instance, the Browser widget in the Eclipse SWT library supports.

Is there a way to do this on Mac, Windows and Linux, and thus make sure that my web pages are rendered inside my Java app uniformly?


回答1:


Since SWT 3.7 M5, the Browser widget can use WebKit on all platforms if created with the SWT.WEBKIT flag. Platform-specific conditions may apply: see http://www.eclipse.org/swt/faq.php#howusewebkit.




回答2:


JXBrowser is one option. It's including Safari.

WebKit 4 SWT is close to what you need but only work on Windows for now.



来源:https://stackoverflow.com/questions/3279337/webkit-browser-in-java-app-on-multiple-platforms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!