javafx embedded webbrowser for html5

折月煮酒 提交于 2019-12-08 05:20:38

问题


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.

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

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

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.

Thanks and greets


回答1:


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

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.




回答2:


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

If you your application is an open-source project, you can obtain the JxBrowser Open-Source license here.



来源:https://stackoverflow.com/questions/45189519/javafx-embedded-webbrowser-for-html5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!