java 是否可以将 JavaFX 的 WebView 更改为 Chrome
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32200511/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is it possible to change WebView of JavaFX to Chrome
提问by Sangeeth
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?
我们正在尝试创建一个使用 html5 画布打开 url 的桌面应用程序。我们使用 Java 8 JavaFX 实现了它。但是我们在渲染草图时遇到了不好的反应。
这在 Chrome 浏览器中工作正常。是否可以在 JavaFx 应用程序中嵌入 Chrome 浏览器?
回答by jewelsea
Is it possible to change WebView of JavaFX to Chrome
是否可以将 JavaFX 的 WebView 更改为 Chrome
No.
不。
Is it possible to embed chrome browser in JavaFx application?
是否可以在 JavaFx 应用程序中嵌入 Chrome 浏览器?
Yes.
是的。
Try JCEFfrom the chromium embedded project instead of WebView.
从 Chromium 嵌入式项目而不是 WebView尝试JCEF。
For a commercial solution, JxBrowseradvertises Chromium support for JavaFX applications.
对于商业解决方案,JxBrowser宣传 Chromium 对 JavaFX 应用程序的支持。
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.
我没有使用过 JxBrowser 或 JCEF,所以我没有关于如何使用它们或它们是否适合您的目的的更多细节或建议。
回答by Phantomazi
No, currently there's no such option. Oracle discussion
不,目前没有这样的选择。甲骨文讨论
However, you can deploy your application in a browser - hereis the discussion about this.
但是,您可以在浏览器中部署您的应用程序 -这是关于此的讨论。
回答by Amit Bhati
No, you cannot embed Chrome browser in webview of JavaFX.
不,您不能在 JavaFX 的 webview 中嵌入 Chrome 浏览器。
Refer this link: Performance of WebView in JavaFX
请参阅此链接:JavaFX 中 WebView 的性能
You will get an idea about its performance relative to other browsers.
您将了解它相对于其他浏览器的性能。