JUG Leader, Java Champion, Speaker, Author, ❤️ Java(FX) and coding in general
How to use the same architecture to implement a JavaFX-based GUI, a PUI attached to a Raspberry Pi, and integrate both in a clean, modular way.
Game developers unite around Java and JavaFX! Version 17 of the FXGL game engine brings a number of improvements in many areas.
Point JDKMon to the folder where all your JavaFX SDK’s are installed and it will check if there are any updates available.
- Getting Started
Both for Maven and Gradle lovers there are different possibilities to build Java executables and GitHub provides the free tools to do so!
As part of the Foojay Virtual OpenJDK 17+ JUG Tour, I was asked to present the state of Java and JavaFX 17 on the Raspberry Pi.
So, a perfect opportunity to freshen up my #JavaOnRaspberryPi presentation with some hot-off-the-press versions.
The FXGL game engine is now at 11.17. Most of the changes in this release focus on internal code quality and fixes.
Major additions to note:
1. Added download file API to NetService. Using this API developers can download files from any URL. For example, if certain assets are stored remotely.
2. Rotation and scale in 3D now support origin points (pivot points). This is a beneficial addition since some animations will need specific origin points for transformations to achieve the desired effect.
Have you ever been in the situation where you’ve been looking for a specific JDK version of a specific distribution?
Sometimes that was easy… sometimes it was hard… but it never was fun.
After creating the Disco API (“Universal OpenJDK Discovery API”, in full) which serves up JDK distributions as a service, I had the idea to create plugins for IDEs to enable people to download the JDK of their choice more easily.
We started with an introduction of the basics of using jshell. Next, you got a chance to learn how to run a JavaFX application file from a terminal command prompt and from within jshell’s command prompt.
After that, launching the application we were able to change the color interactively by setting the public static member variable color.
Lastly, we learned how to stop a JavaFX application properly via /reset command.
JDKMon is just a little tool that scans your computer for installed OpenJDK distributions and uses the Disco API to check whether there are updates available for one of the distributions.
In case it finds updates it will present you buttons for each package it finds.
When you click on one of these buttons (e.g. tar.gz, zip, pkg etc.) you have to select a folder where the selected package should be downloaded to.
Although a lot of universities and high schools focus on Python and C# in their program, there are luckily a lot of others who go “full Java”.
Don’t get me wrong, I definitely don’t want to start a “programming-languages-war”, but Java is the language I used myself more than any other for the last 10 years.
Setting up a new project or building a proof-of-concept for a new idea, is a matter of hours. And there is always a solution for the problem I need to solve.
This is probably true for each developer who has enough experience in the language used the most. But having used and experimented with many other languages, I still keep returning to my “one true love”, being Java, as it always delivers the result I’m aiming for, with the right amount of code to be readable, understandable, and testable!
Hello, and welcome to the last part of this series of articles on creating a JavaFX World Clock from scratch!
In this part, I will show you how to make WebService calls (RESTful) to retrieve weather data based on geographic locations.
If you remember, in Part 5 you learned how to use the JavaFX WebView and the popular mapping library Leaflet JS enabling the user to discover geographic locations. In Part 6, I will show you how I used Java 11’s Http Client to retrieve and display weather content. If you are new to this series, you can visit Part 1-5.