Search code examples
javahtmljavafxjava-8javafx-webengine

Is it possible to change WebView of JavaFX to Chrome


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?


Solution

  • 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.