javafx嵌入式webbrowser for html5 [英] javafx embedded webbrowser for html5

查看:1654
本文介绍了javafx嵌入式webbrowser for html5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的javafx程序的两个阶段中嵌入一个webbrowser。使用javafx webview不适用于预期内容(使用Panotour生成的360°视图)。所以我必须寻找替代方案。

I want to embed a webbrowser in two stages of my javafx program. Using javafx webview does not work for the intended content (360° view generated with Panotour). So I have to search for alternatives.

我使用JCEF失败了;它不能与javafx一起使用(既不使用SwingNode也不使用GLJPanel)。

I failed using JCEF; it does not work with javafx (neither with using SwingNode and GLJPanel).

JxBrowser看起来很有前景,但是非常昂贵且封闭源。

JxBrowser looks promising, but is very expensive and closed source.

有人可以推荐一个开源(我必须扩展webbrowser)和html5浏览器嵌入javafx视图吗?很高兴有gpu渲染。

Can someone recommend a opensource(I have to extend the webbrowser)and html5 browser to embed in a javafx view? Nice to have with gpu rendering.

谢谢和问候

推荐答案

不幸的是,它仅适用于AWT / Swing,因为将它嵌入 SwingNode

Unfortunately it works only with AWT/Swing because it's too complicated to embed it in SwingNode.

如果要使用 JCEF
这并不像你想象的那么难,记住 - 你也可以使用 JFXPanel 。该项目仍在开发中并且试图变得更加友好,您甚至可以找到maven构建和分叉:

You'd have to change the structure of your application if you want to use JCEF. It's not as hard as you think, and remember - you can also embed JavaFX components in Swing using JFXPanel. The project is still developing and trying to be more friendly, you can even found maven builds and forks:

  • GitHub: Pandomium - fork with maven builds and natives
  • Maven: JavaCef - clean maven builds

目前,您找不到更好的选择。

Currently, you won't find a better alternative.

这篇关于javafx嵌入式webbrowser for html5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆