• Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    Java
  • License
    Other
  • Created almost 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WebFX runs FXML and Javascript based JavaFX applications remotely

WebFX

The purpose of this project is to investigate both the possibility of building a JavaFX-based web browser, as well a new concept of web pages designed using JavaFX components (by coding, and remotely serving FXML + JS + CSS files) instead of using HTML, to build rich "web pages". 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. The goal of this project is to build a fully capable JavaFX-based browser, with a security layer, a navigation scheme, and then common web browser features such as bookmarking, cookie management, etc.

Inverted Browser Control Concept

JavaFX contains a feature called WebView, which enables applications to use an embedded version of WebKit to render HTML5 content. As a result, developers can create applications that use this browser to access remote applications. By combining this concept, developers can continualy build web applications that may have extensions built in Java to be executed in the client-side, as long these Java-based extensions are part of a JavaFX desktop application.

Figure 1 represents the legacy of Applets and Web Browsers. It is well known that Applets are no longer supported by all browsers, and that NPAPI is being slowly removed.

Figure 1

Figure 2 representes the inverted browser control concept, where developers build their own "embedded" browser to run remotely served web applications, while expanding the capability of their desktop applications in the client-side with rich features using JavaFX, or even reusing existing Applets codebases.

Figure 2

Running Applets in a JavaFX-based browser

The WebView component does not support the execution of Applets out-of-the-box. Graphical embedded applets (those that would show within a web page) are impossible to run, but for non-graphical Applets it is possible to load them and even have them interacting with your web page's Javascript code. For an example of such use case, see project webfx-appletsupport-sample for more information.

JavaFX-based Web Browser

FXML is the JavaFX markup language used to define user interfaces. UI components can be any JavaFX core component or any 3rd-party component available in the classpath. JavaFX also supports CSS for styling the UI. A web browser powered by JavaFX is then capable of running both regular W3C web pages as well FXML-based web pages remotely served.

YouTube Demo Videos

Hybrid JavaFX Application Architecture

The image below gives developers an idea on how they can leverage existing code, both legacy Applets, and web applications, with modern development approaches of JavaFX Desktop RIA applications.

For more information, check my presentation Migrating from Applets to Java Desktop Applications

Figure 3

More Repositories

1

fx2048

The game 2048, built using JavaFX and Java 11
Java
264
star
2

javafx-jlink-starter-gradle

A JavaFX starter project with Gradle and jlink support
Java
77
star
3

toml-schema

59
star
4

javaee7-jms-websocket-example

Example of a Java EE 7 application that integrates JMS 2.0, WebSockets 1.0, CDI events, and EJB 3
Java
51
star
5

aks-jvm-benchmark

Java Benchmark on AKS
Java
35
star
6

rinha-app

HTML
31
star
7

javaee7-examples

Examples of Java EE 7 applications that demonstrate APIs and integrations
CSS
25
star
8

nashorn

Useful and Samples scripts for Java's Nashorn Javascript engine
JavaScript
19
star
9

gamboa-project

A Maven archetype for rapid web application development
Scala
19
star
10

simple-web-app

Java
17
star
11

camel-twitter

Twitter component for Apache Camel
Java
13
star
12

pcurl

Shell
11
star
13

jvm-ergonomics

Shell
11
star
14

ssh-over-http-proxy

C
11
star
15

wicket-with-quarkus

Java
11
star
16

showmyjvm

Java
10
star
17

maven-javafx-archetype

A Maven Archetype for OpenJFX (JavaFX) Projects
Java
9
star
18

wcjvm

JVM launcher inside Windows Containers in Process Isolation mode
C#
8
star
19

yaml-schema

YAML Schema proposal to solve all of our problems once and for all.
6
star
20

javaee7-archetype

Java EE 7 Archetype with GlassFish configured
6
star
21

twitter-sentiment-analyzer

Java
5
star
22

tdconcamel

CSS
4
star
23

camel-azure-functions-demo

Java
4
star
24

demo-jlink

Shell
3
star
25

futebol

Algoritmo para separação de jogadores de pelada em times equilibrados
Java
3
star
26

justextract

JavaScript
3
star
27

oraclecloud-demo

Sample application to run in Oracle Cloud
HTML
3
star
28

100-prisoners

Java implementation of ideal solution to the 100 Prisoners problem
Java
2
star
29

azure-function-jooq-postgre-sample

Java
2
star
30

glassfish2weblogic

GlassFish to WebLogic Migrations
1
star
31

adventofcode2023

Java
1
star
32

helloworldfarm

Java
1
star
33

nashorn-oracle-cloud

Oracle Cloud REST samples to use with Nasven.js
JavaScript
1
star
34

jakartaee9-java17-azure

Run a Jakarta EE 9 web app with Java 17 on Tomcat 10 on Azure
Java
1
star
35

camel-twitter-coherence

JavaOne 2012 demo using Camel, Twitter and Coherence
JavaScript
1
star
36

java-microsoft-artwork

1
star
37

bench-count-digits

Java
1
star
38

weld-cdi-javafx-bug

Java
1
star
39

code-with-quarkus

Generated by code.quarkus.io
HTML
1
star
40

javaee7-jms-websocket-bug

Bug when connecting a WebSocket with JMS. See GLASSFISH-20371
Java
1
star
41

javaee4fx

Bootstrap Java EE APIs for JavaFX applications
Java
1
star
42

findlibfreetype

Shell
1
star