开发者

WebKit browser in Java app on multiple platforms

开发者 https://www.devze.com 2023-01-08 01:54 出处:网络
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

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 开发者_Python百科uniformly?


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.


JXBrowser is one option. It's including Safari.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消