问题
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