cyverse-gis / suas-metadata

Main repository for Calliope project - see Wiki tab above for details
GNU General Public License v3.0
1 stars 2 forks source link

Explore WebView in Calliope #19

Open tyson-swetnam opened 5 years ago

tyson-swetnam commented 5 years ago

We want to test WebView as a way of viewing browser based programs, e.g. WebODM in Calliope

priggec commented 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.

DavidM1A2 commented 5 years ago

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.

priggec commented 5 years ago

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

tyson-swetnam commented 5 years ago

I'm going to IceBox this for revisiting in 6 months to a year