WebKit浏览器在多个平台上的Java应用程序中 [英] WebKit browser in Java app on multiple platforms
问题描述
我正在尝试在我的Java应用程序中嵌入一个WebKit浏览器。我坚持使用WebKit,因为我不想用每个浏览器测试我的HTML5 / CSS / Javascript,例如,Eclipse SWT库中的Browser小部件支持。
<有没有办法在Mac,Windows和Linux上执行此操作,从而确保我的网页统一呈现在我的Java应用程序中?
从SWT 3.7 M5开始,浏览器
小部件可以在所有平台上使用WebKit,如果使用 SWT.WEBKIT $创建的话c $ c>标志。特定于平台的条件可能适用:请参阅 http://www.eclipse.org/swt/faq .php #howusewebkit 。
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?
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.
这篇关于WebKit浏览器在多个平台上的Java应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!