Java 应用程序中的 WebKit
是否可以在 java 应用程序中集成 webkit 引擎。
这是我的想法,我想使用 javascript 和 Java 中的业务逻辑来实现我的用户界面,并希望在 js 和 java 之间来回通信。我研究过钛合金和铬合金。但我不明白完整的情况。谁能给我一个关于在独立应用程序中使用 webkit 的良好解释。
Is it possible to integrate a webkit engine in a java application.
Here is my thinking, I would like to implement my User Interface using javascript and business logic in Java and want to communicate back and forth between the js and java. I have looked at titanium and chromiumembedded. But i dont get the complete picture. Can anyone give me a good explanation of webkit being used in a standalone application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有几种解决方案,主要的一种是针对 SWT 的。请参阅此处对于 SWT 解决方案。 此处有一个类似的问题,涉及 SWING。
编辑:天哪,我不敢相信我忘记了 Lobo,一个用 Java 编写的浏览器。更具体地说,他们的 浏览器 API 提供了对嵌入的支持。这似乎是跨平台和稳定性的更好解决方案。我对前两个解决方案的开发不是 100% 确定。希望能提供一些见解。
There are a few solutions, the main one being for SWT. See here for the SWT solution. There was a similar question here referring to SWING.
Edit: Oh my, I can't believe I forgot Lobo, a browser written in Java. More Specifically, their Browser API providers support for embedding. This seems to be the better solution for cross-platform and possibly stability. I'm not 100% sure on the first two solutions' development. Hope that provides some insight.
JavaFX 2 有一个基于Webkit 的嵌入式浏览器组件。 Oracle 此处提供了一个教程。
JavaFX 2 has an embedded browser component based on Webkit. There is a tutorial provided by Oracle here.