Skip to content
/ webfx Public
forked from brunoborges/webfx

Using JavaFX as the new HTML for web browsing

License

Notifications You must be signed in to change notification settings

pjBooms/webfx

 
 

Repository files navigation

WebFX

The purpose of this project is to investigate the capabilities of using JavaFX (FXML + JS + CSS) to build rich web pages, instead of using HTML. With the new Javascript engine, Nashorn, the performance of a JavaFX page in FXML and the controllers in JS will be much higher than it is today. Idea is to build an FX browser, a security layer, a navigation scheme where one FXML can tell the browser to go to another FXML and a protocol for server-side communication.

YouTube Demo Videos

"WebFX allows me to run the JVM in Raspberry Pi forever and evolve my JavaFX application by modifying FXML and Javascript on remote webserver" - Bruno Borges

Java ReStart integration

It is forked version that introduces URL handlers concept where two URL Handlers for java:// and wfx:// protocols are defined in https://github.com/pjBooms/Java-ReStart project under javarestart-webfx module. To enable the implementation you need to clone Java ReStart project, build it (it depends on this fork, so you have to call mvn -install before building Java ReStart) and launch the WebFX browser from javarestart-webfx module with the following VM properties:

-Djava.protocol.handler.pkgs=javarestart.protocols -Dwebfx.url.handlers=javarestart.webfx.JavaURLHandler,javarestart.webfx.WFXURLHandler

The integration allows you to reference remote classes from FXML pages (originally only JS could be referenced from FXML) and launch Java ReStart applications from the WebFX browser (https://github.com/pjBooms/webfx/tree/master/webfx-browser).

About

Using JavaFX as the new HTML for web browsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 90.0%
  • JavaScript 6.1%
  • CSS 3.0%
  • Other 0.9%