Learn about the main UI layout of a cool JavaFX game using Scene Builder, TilePane, FlowPane, controller code, iOS and Android settings!
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.
Let’s learn about adding some more data to our messaging system with another member of the Raspberry Pi family: the Pico.
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.
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.
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.
In Part 1, we introduced a mobile app game, TiltMaze, written completely in JavaFX, which you can download from either the Apple App Store or Google Play and install it on your mobile device or tablet.
In Part 2, we showed you how to work with Gluon and GraalVM to build native images that execute on either Apple or Android mobile devices and tablets.
In this article, we’ll discuss how to upload your application to the respective mobile app stores so the world can install your application on their devices.
In this three-part series, I’ll show how to use JavaFX for mobile app development: JavaFX looks great and runs on both mobile platforms.
You use the same JavaFX code targeting Google Play and Apple App stores. Performance is excellent and startup time is fast with native images.
You use Java 11+ and the latest JavaFX.
Our game is TiltMaze Labyrinth!
Since Java switched to a 6-month release cycle, JavaFX has done the same, so next version will be number 17.
Keep in mind, although Java and JavaFX are on the same version-number, you can still use Java 11 and combine it with the JavaFX 17 runtime if you want to benefit from its improvements. Up till now, there were no breaking changes in either of the frameworks which force you to use a Java-version higher than 11.
Here on Foojay.io, you can find already a long list of articles about Java on the Raspberry Pi.
As you may know, already I’m a big fan of this combination. The Raspberry Pi on one side is a very cheap computer that allows you to experiment with electronic components thanks to the Pi4J library.
And on the other hand, JavaFX is the ideal framework to build user interfaces that can directly control these components, all in one application!
But maybe you don’t have / want to believe me? So let’s ask two experts what they think is the future of #JavaOnRaspberryPi.
Hello, and welcome back to this series of articles on creating a JavaFX world clock.
In Part 5 below, we will be looking at JavaFX’s WebView API to display an HTML Web page containing a 2D map (Mercator projection).
To render the 2D map I will be using the popular Leaflet JS library. This will enable the World Clock App to let the user explore map locations based on GPS coordinates (latitude & longitude).
In this article, Almas and Frank show you how to start with an idea for a game and bring it to life in a prototype application. We will then modify the application to run on a Raspberry Pi and on a mobile device.
To give some background, some time ago my 10y old son challenged me to create a Snake-like game with emojis. He selected the emoji images and I “only” needed to do the programming bit, the easy part… Luckily Almas asked me if I had a topic for some pair-programming for his YouTube channel, and his question turned into a three-part series. My son is delighted because his idea is now a real game!
This article is for the beginner who wants to get started developing JavaFX applications using IntelliJ IDE.
While this article may seem elementary for some, I believe it can help newcomers to the JavaFX platform avoid some pitfalls and really hit the ground running.
Combined with an inexpensive touch screen, the Raspberry Pi makes for a perfect controller for a machine or game console.
Let’s see how we can use Java and JavaFX to build a test application that also communicates with the pins of the Raspberry Pi to control a LED.
Hello and welcome to Part 4 of a series of blog entries on how I created a “sci-fi” looking world clock using JavaFX. If you are new to this series you can visit Part 1, 2, & 3.
If you’ve been following me to this point take a moment to stand up, breath, take a bow and then pat yourself on the back. You are more than half way through the series.
In Part 4 I will be fast forwarding my progress of the JFX World Clock and jump right into how to build and create an installer that you can distribute. I will be using a new Java build tool called Bach by Christian Stein @sormuras. Later on, I will also show you my original build approach using the Maven build tool.
Do you ever get bored of the plain old UI Forms? Often, UI forms will have nice visual cues and validation icons as feedback when the user has typed something incorrectly.
In Part 3, I’ll be discussing the UI form section of the JavaFX World Clock that allows the user to add and modify timezone locations. While building Java apps using the new module system can be a bit of a challenge, here I will show you how I was able to successfully build a modern MVC based JavaFX UI!