Is it possible to change WebView of JavaFX to Chrome

眉间皱痕 提交于 2019-12-04 10:47:36

问题


We are trying to create a desktop application which opens url with html5 canvas. We implemented it using Java 8 JavaFX. But we experiencing bad response in rendering of sketches.
This working fine in Chrome browser. Is it possible to embed chrome browser in JavaFx application?


回答1:


Is it possible to change WebView of JavaFX to Chrome

No.

Is it possible to embed chrome browser in JavaFx application?

Yes.

Try JCEF from the chromium embedded project instead of WebView.

For a commercial solution, JxBrowser advertises Chromium support for JavaFX applications.

I have not used either of JxBrowser or JCEF, so I have no further details or advice on how to use them or whether or not they would be fit for your purpose.




回答2:


No, currently there's no such option. Oracle discussion

However, you can deploy your application in a browser - here is the discussion about this.




回答3:


No, you cannot embed Chrome browser in webview of JavaFX.

Refer this link: Performance of WebView in JavaFX

You will get an idea about its performance relative to other browsers.



来源:https://stackoverflow.com/questions/32200511/is-it-possible-to-change-webview-of-javafx-to-chrome

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