I started (web)-user-interface development a long time ago with the Adobe Flex SDK to run in the browser with the Flash plugin.
FXGL is a Java, JavaFX and Kotlin Game Library (Engine) made by Almas Baimagambetov.
One of the most read articles on this blog is about the installation of a recent Java on Raspberry Pi (March 13, 2019), so it’s time for an update!
Based on multiple examples from my book “Getting started with Java on Raspberry Pi”, I created a touchscreen controller for the drum booth of my son.
Java versions PC $ java --version openjdk 14 2020-03-17 OpenJDK Runtime Environment AdoptOpenJDK (build 14+36) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14+36, mixed mode, sharing) Raspberry Pi 32bit $ java --version openjdk 13-BellSoft 2019-09-17 OpenJDK Runtime Environment (build 13-BellSoft+33) OpenJDK Server VM (build 13-BellSoft+33, mixed mode) $ uname -a Linux raspberrypi4 4.
In my book I explain the use of bits and bytes by using a shift register SN74HC595 IC and 5101AS LED number display.
To create some timeline images for my book, I created this little JavaFX application to be able to easily update the content and recreate the image.
Using the Java library I created (see previous post), it was a piece of cake to create a JavaFX UI on top of it!
Next step in my book progress, is getting more into the details of hardware components.
One of the example applications in my book “Getting started with Java on the Raspberry Pi” combines a JavaFX application with Mosquitto on the Raspberry Pi to control a LED strip with an Arduino.
My very first open source JavaFX library is now available in the Maven repository!
While trying out what Pi4J can do, I found it could easily be extended with a JavaFX application to provide info about the headers on a Pi board.
As my daily work mainly is Java and back-end stuff on “real servers”, I set myself for 2019 as a personal goal to experiment with Java 11 on a Raspberry PI.
What we will do Based on the previous blog posts
In part 2 of this blog series Java 11 was successfully installed on a PI.
I prefer a Java app above a web app, because starting a new “modern” web development requires you to pull a bunch of dependencies and a lot of files before you can start.
What is JavaFX? From the Oracle site: “JavaFX is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.