Java 应用程序中的 WebKit

发布于 2024-12-19 08:41:44 字数 168 浏览 3 评论 0原文

是否可以在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清音悠歌 2024-12-26 08:41:44

有几种解决方案,主要的一种是针对 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.

虚拟世界 2024-12-26 08:41:44

JavaFX 2 有一个基于Webkit 的嵌入式浏览器组件。 Oracle 此处提供了一个教程。

JavaFX 2 has an embedded browser component based on Webkit. There is a tutorial provided by Oracle here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文