Is it possible to change WebView of JavaFX to Chrome
Asked Answered
E

3

13

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?

Examinant answered 25/8, 2015 at 9:36 Comment(0)
I
17

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.

Illation answered 25/8, 2015 at 12:51 Comment(3)
I can confirm JxBrowser works great. But did you really manage to embed JCEF in a JavaFX application? To my knowledge it only works for Swing.Forsta
Last time I checked the comment was "There are no plans to support it currently. External contributions are welcome." magpcss.org/ceforum/viewtopic.php?f=17&t=14639Forsta
As noted in my answer "I have not used either of JxBrowser or JCEF".Illation
A
0

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

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

Andreasandree answered 25/8, 2015 at 9:44 Comment(0)
R
-1

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.

Reinaldo answered 25/8, 2015 at 9:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.