Open tyson-swetnam opened 5 years ago
The WebView in the version of JavaFX we use is very outdated. It might be best to find an alternative from a library, or else we would have to update everything to Java 11.
JFX 11 is certainly where things are going and is where Calliope should go too, but the big dependency that requires JFX 8 right now is ControlsFX which adds a bunch of useful controls in. We'd need to find an alternative or see if ControlsFX has updated to update the JFX 11. Also JFX 11 requires a separate install for Java and JavaFX.
An alternative to JavaFX's WebView I have found is the chromium embedded framework (cef). There is a java version called java-cef. This could be an easy solution to the problem, especially since electron apps are meant to run in chromium. However, java-cef is still under development and does not yet have a JavaFX node, only a swing node. So, for now, we cannot use it easily. Some people have used a SwingNode in JavaFX, but only to very limited success. The JavaFX node is currently a high priority issue on the repo. So, fingers crossed, we might get a JavaFX node for chromium soon, which is exactly what we need.
EDIT: Link to repo > https://mvnrepository.com/artifact/org.bitbucket.johness/java-cef
I'm going to IceBox this for revisiting in 6 months to a year
We want to test WebView as a way of viewing browser based programs, e.g. WebODM in Calliope