Uncategorized JavaFX: One Codebase for Web, PC, and Mobile –

Live Webinar and Q&A: Using Reinforcement Learning To Beat Go Masters and Write Java Unit Tests (Feb 10th, 2022) Register Now
Facilitating the spread of knowledge and innovation in professional software development

In this podcast summary Thomas Betts, Wes Reisz, Shane Hastie, Charles Humble, Srini Penchikala, and Daniel Bryant discuss what they have seen in 2021 and speculate a little on what they hope to see in 2022. Topics explored included: hybrid working and the importance of ethics and sustainability within technology.
What is the single best API technology you should always use? Thomas Betts moderated the discussion, with the goal to understand some of the high-level features and capabilities of three popular technologies for implementing APIs. The discussion covers some of the pros and cons of GraphQL and gRPC, and why you might use them instead of a RESTful API.
In this article, author Juan Pan discusses the data sharding architecture patterns in a distributed database system. She explains how Apache ShardingSphere project solves the data sharding challenges. Also discussed are two practical examples of how to create a distributed database and an encrypted table with DistSQL.
Psychological safety is a work climate where employees feel free to express their questions, concerns, ideas and mistakes. We cannot have high-performing teams without psychological safety. In this article, you will learn practical ideas, interesting stories, and powerful approaches to boost psychological safety in your team.
At QCon Plus, Mathias Schwarz, a software engineer at Uber, presented safe and fast deploys at planet scale. Uber is a big business and has several different products. They are, in most cases, deployed to dozens or hundreds of markets all over the world.
How do traditional security approaches scale in Cloud Native architectures? Register Now!
Learn from practitioners driving innovation and change in software. Attend in-person on April 4-6, 2022.
Uncover emerging trends and practices from software leaders. Attend online on May 10-20, 2022.
Your monthly guide to all the topics, technologies and techniques that every professional needs to know about. Subscribe for free.
InfoQ Homepage News JavaFX: One Codebase for Web, PC, and Mobile
This item in japanese
Lire ce contenu en français
Jul 12, 2021 1 min read
Erik Costlow
Gluon has published a status update for JavaFX, showing the way in which a single JavaFX codebase can be used across a PC (standard JavaFX), a mobile device with Android or iOS (through integrated GraalVM), and a beta of browser-based WebGL (through Gluon).
The new addition of WebGL expands the level of support into the browser client side, enabling developers to write the entire application in a single Java language or codebase, without requiring a specialized JavaScript frontend. The change can benefit developers who write client applications used across multiple device profiles or those who create web frontends that are hosted on web or packaged locally through techniques like Electron.
Pi4J contributor Frank Delporte published a guide and sample project designed to showcase the capability to deliver a single application across Mac and Raspberry Pi devices like the Elecrow CrowPi2 laptop. The project demonstrates how to use common libraries and stylesheets like ControlsFX and BootstrapFX to make JavaFX applications look similar to what users expect. This change can speed up development by using common shared components while retaining a familiar sense of style that applications simply "look different" than what users are used to.
Gluon’s approach delivers a fully client-side component that does not require anything on the server. When built, the JavaFX code is transpiled to JavaScript and then invokes WebGL code. This approach makes JavaFX web frontends accessible to serverless applications because no persistent server-side state is required.
While JavaFX provides the groundwork for cross-platform applications, usage is low across the industry with JavaScript/Web clients far more common. StackOverflow trends reports on similar cross-platform development trends show a relative rise of Flutter and React-native while JavaFX is largely unchanged. When compared against direct numbers, JavaFX has 120,000 students on Udemy compared to React-Native at 900,000 and Flutter at 1,500,000.
JavaFX was recently discussed on the Foojay podcast, with members indicating that the best approach for cross-platform applications is to select a common application style rather than to emulate each platform’s native environment. Developer Gerrit Grunwald pointed out that iOS controls are highly unique with state information commonly outside of the Object represented by the FX control.

Try NGINX Plus and NGINX App Protect – Free for 30 Days.
A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.
You need to Register an InfoQ account or or login to post comments. But there’s so much more behind being registered.
Get the most out of the InfoQ experience.
Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.
QCon, the international software development conference, is returning (in-person and online) in 2022.
QCon brings together the world’s most innovative senior software engineers across multiple domains to share their real-world implementation of emerging trends and practices.
Find practical inspiration (not product pitches) from software leaders deep in the trenches creating software, scaling architectures and fine-tuning their technical leadership to help you make the right decisions. Save your spot now! and all content copyright © 2006-2022 C4Media Inc. hosted at Contegix, the best ISP we’ve ever worked with.
Privacy Notice, Terms And Conditions, Cookie Policy


Author Details

Sign up for our newsletter to stay up to
date with tech news!