r/JavaFX • • Sep 07 '25

I made this! Responsive Dashboard example + small responsive toolkit for all that keep asking me.

18 Upvotes

For several months, many people have been contacting me on Reddit, Discord, GitHub, etc., asking for an example of a responsive (web-like) JavaFX UI. I made a small toolkit for it, attached a demo, and also recorded a YouTube video to showcase it. Hope you guys like it.

GitHub Repo

YouTuve video

Just shipped NfxFluidPane: a fully CSS-customizable, breakpoint-aware fluid grid Pane for JavaFX. Check it out in the repo. (must be tested very well)

NOTE : I used FXML for fast dev ok, dont get crazy about it :}


r/JavaFX • • Jun 07 '25

Discussion Significance of javaFX?

18 Upvotes

How frequently is javaFX used in the tech industry today and what fields industries would most likely rely on javaFX for their systems and applications?


r/JavaFX • • Mar 19 '24

Release OpenJFX 22 Released - Highlights

Thumbnail openjfx.io
18 Upvotes

r/JavaFX • • Oct 26 '23

I made this! Finally, custom Stage for Windows

Thumbnail
github.com
18 Upvotes

Feedback is welcome.


r/JavaFX • • Jul 18 '22

Showcase Devnexus 2022: May JavaFX be with you always - Gerrit Grunwald

Thumbnail
youtube.com
18 Upvotes

r/JavaFX • • Jul 16 '22

I made this! JavaFX - JVM Explorer - Browse loaded class files inside locally running JVMs

Thumbnail
github.com
18 Upvotes

r/JavaFX • • Jan 30 '22

Discussion JavaFX unit tests

18 Upvotes

I get the idea of unit tests. There are there to ensure that 2 + 2 = 4 and so on. But how do you test a GUI in general and JavaFX in particular? I have seen that it can be done using TestFX as well as without it.

Doesn't it break the ecapsulation? How can I test that in the third window of an app, all 200 elements contained within display what they should after a distinct series of user interactions (say selecting an item in context menu, ticking a few checkboxes or radio buttons, selecting from select boxes, clicking buttons, etc.). Is it even possible to write such test?

So far I have done tests by launching the application and doing all above myself which needless to say is a very error prone, unreliable and time consuming process.

Any insight is greatly appreciated. In other words: how do you guys do it?

Thank you.


r/JavaFX • • Nov 22 '21

Release JavaFX 17 Highlights

Thumbnail openjfx.io
18 Upvotes

r/JavaFX • • Mar 18 '21

Help: Trying to understand Java Desktop Demand

18 Upvotes

I started work on a automatic desktop updating service a few months ago (you can see a preview up at https://changenode.com/). The idea is to make deploying and working with Java desktop apps as easy and measurable as working with a web app.

I released a game last year with Unity & Steam, and I was surprised at how much I liked being able to release a new build with a few commands to Steam, and get usage and crash analytics from Unity. It was all very clean. I wanted to build some desktop software as a solo dev, and after looking at a bunch of options (e.g. Electron, Qt, etc) I realized that Java is probably still the only real game for relatively straight-forward x-plat desktop apps.

So, I am very close to being complete with a version for Java & JavaFX. A developer can start with a simple template, add a few lines of Maven and a few lines to add the updater UI and that's it.

What I'm trying to figure out is just how much demand there actually is for a service like this. There are only 3.4k members of this sub...

Simply put - is this a service you would actually use or be interested in? Why or why not? And if so, is it something you'd see more as a nice wrapper (for example, you post your releases to stuff like GitHub releases anyways) or as a hosting service?

I'm a bit concerned that this is just such a small space right now that I'll wind up with just a handful of customers...

Thoughts? Observations?


r/JavaFX • • Mar 16 '21

Cool Project Java 16, JavaFX 16 Template

18 Upvotes

So, I've been working for a while now on a JavaFX template. The idea is to have a very simple go-to template for working with JavaFX on the desktop.

https://github.com/wiverson/maven-jpackage-template

The template includes a bunch of neat things, like using GitHub Actions to automatically build macOS, Windows and Linux versions.

I've gone ahead and updated it to use Java 16 & JavaFX 16. The GitHub runners already have Java 16 builds, which is pretty slick. There's a Java 15 branch if you need it, but AFAIK there isn't any reason I can think of to start a new JavaFX project with 15.

If you saw an earlier version of this template, you may have noticed that it used jdeps to generate a modularized version of your application, which would then be fed into jpackage. Unfortunately, it proved impossible to get this to work reliably - there are too many edge cases for jdeps to work automatically, there are a lot of bad module-info.java files, etc etc etc.

The current version throws all that out. Instead, it just builds a custom JVM using jlink, collects the dependencies into a directory and builds a traditional classpath based installer from that.

Hilariously, the builds are now faster, everything works as expected (e.g. reflection) and the installers are... exactly the same size as the modularized versions. Sigh.

Now that jpackage is included in the JVM by default, there is no longer any need to futz with MAVEN_OPTS to enable the jpackage incubator. Much easier.

If anyone has any questions about this template or Java module system (ha) let me know.


r/JavaFX • • Mar 10 '21

JavaFX 16 Released

Thumbnail openjfx.io
18 Upvotes

r/JavaFX • • Sep 18 '20

FXGL 11 Showcase Trailer

Thumbnail
youtube.com
18 Upvotes

r/JavaFX • • Mar 19 '20

JavaFX links of the Week?

18 Upvotes

Anyone here who misses Jonathan Giles' weekly Javafx roundup in his website fxexperience.com ?

I was an avid follower of the website. He stopped maintaining fxexperience February last year and moved it to his personal blog JonathanGiles.net, but then I see his last post was April 2019.

I'd be happy if someone could continue fxexperience.


r/JavaFX • • Feb 28 '20

JavaFX Discord Server

18 Upvotes

I made a JavaFX Discord Server for people who like to talk about JavaFX stuff, or need help with certain projects, I really like to work with java, especially with people who are working with JavaFX (:

Here is the discord link: https://discord.gg/yZ3Y3Fd or https://discord.gg/AzFaNU


r/JavaFX • • Jun 11 '19

CRM System in JavaFX

Thumbnail
twitter.com
18 Upvotes

r/JavaFX • • Jul 16 '18

JavaFX links of the week, July 16 | JavaFX News, Demos and Insight // FX Experience

Thumbnail
fxexperience.com
18 Upvotes

r/JavaFX • • Oct 22 '26

I made this! Release announcement: Sheetmusic4J 0.0.4 and 0.0.5: clickable notes, a 3D fly-over view and LilyPond support (Java and JavaFX sheet music library)

17 Upvotes

Hi all,

I've been working on Sheetmusic4J, an open-source Java library that renders sheet music natively in Java(FX). Two new releases are out, and I made a video showing both: https://youtu.be/8n7WONyX0yk

0.0.4

- NodeSheetView builds the score as a JavaFX scene graph, with one Group per note, rest and chord. Each element can take mouse events, effects and tooltips like any other node. The demo app lets you select a note and drag it up or down.

- FlyOverSheetView is a 3D play-along view. A perspective camera flies over the score, and a glowing ball per voice hops from note to note.

- Headless rendering to an image via the new render and render-awt modules, with no JavaFX needed:

BufferedImage image = HeadlessScoreImage.render(score, 1200);

- The 3000+ line Engraver class is split into focused packages, and all library modules are now JPMS modules.

0.0.5

- LilyPond (.ly) import and export through the ScoreFile facade, without running LilyPond:

Score score = ScoreFile.load(Path.of("bach-bwv610.ly"));

ScoreFile.save(score, Path.of("bach-copy.ly"));

- Engraving improvements: tuplet placement and nesting, octave clefs, and the percussion clef.

- Layouts are now identical across CPU architectures.

LilyPond support (and other formats earlier) came from suggestions on Reddit, so thanks to everyone who asked for it. Overrides and Scheme code are skipped, because the library does its own layout. The LilyPond page on the site lists what is supported.

It also reads MusicXML, MIDI, ABC and Guitar Pro.

The demo app has a "Report Visual Issue" button. It captures the Sheetmusic4J rendering, the reference PDF and your description, ready to attach to a GitHub issue. If a score looks wrong, that is the most useful feedback I can get.

- Release notes: https://sheetmusic4j.com/releases/

- GitHub: https://github.com/sheetmusic4j/sheetmusic4j

Feedback, issues and score files that break things are all welcome.

Thanks
Frank


r/JavaFX • • Sep 18 '25

Release JavaFX 25 General Availability

Thumbnail mail.openjdk.org
17 Upvotes

r/JavaFX • • Jul 26 '25

Tutorial New Article: Converting FXML to Code

Thumbnail
pragmaticcoding.ca
17 Upvotes

When I started writing this article I had one intention -> to demonstrate how my approach to coded layout design compares to the same layout in FXML.

In the past, when there have been discussions about coded vs FXML, there are always some (lots?, most?) people who feel that their FXML is easier to read and maintain than a coded layout ever could be. This has always seemed strange to me.

It seems strange to me because the way that I create layouts is, I think, not what people expect. When I think about layout code, I'm always picturing highly compressed and streamlined code that handles layout, and only layout. There's only as much configuration as is needed to serve that particular layout. The rest is moved out into utility and builder methods because it's largely boilerplate.

More than anything else, I don't repeat myself. DRY rules over everything in layout code.

In an earlier article about the pro's and con's of FXML, I used an FXML file from the Trinity project as an example of a large FXML file in order to demonstrate how inherently difficult they are to read.

I thought that this might be a sufficiently complex example that it would be worthwhile trying to convert it to a coded layout, in order to compare the results.

TLDR: 1214 lines of combined FXML and FXML Controller became 230 lines of Kotlin layout code. That's about 15% of the original size. It seems to me that having to deal with only 15% as much code/FXML is pretty much guaranteed to be a big win.

However, the Trinity project seems to me to be pretty complex, and this screen is designed to interact with and control the main display in real time. So there was more to take into account than just the layout.

I'll point out that there is nothing in the original design that isn't done the way I would probably approached it 10 years ago. But today? I needed to do more...

This was an imperative approach without a framework. So I reworked it to be a Reactive MVCI implementation. This change alone removed tons of complexity. There were some issues with ListView that I corrected, and this also removed a lot of complexity.

In the end, I feel that the net result is much more interesting than just converting FXML to code. Seeing how a Reactive approach reduces the complexity of a real application and tackling connectivity between screens through a framework was very educational - at least to me.

It's a long article. I apologize, but there was a lot of ground to cover. Take a look, if you are interested, and let me know what you think.


r/JavaFX • • Apr 26 '25

Tutorial New jDeploy JavaFX Starter Template

17 Upvotes

I just published a walkthrough showing how to quickly build, publish, and auto-update JavaFX desktop apps using the new jDeploy desktop app and its JavaFX Gradle Modular Starter template.

This template was adapted from the excellent EasyJavaFXSetup project shared by u/Trehan_O a couple of months ago here. Big thanks to them for laying such a solid foundation!

If you're looking for an easy way to create cross-platform native installers (Windows, Mac, Linux) with auto-update support — and publish them directly to GitHub or npm — this guide can help you get started fast.

👉 Read the article here

Would love any feedback or suggestions for improvements!


r/JavaFX • • Mar 21 '25

Tutorial New Article: Should You Use FXML?

17 Upvotes

This topic has come up here a few times recently, and I've had a few DM's about it too. I had the feeling that I must have covered this topic over and over, but when I looked back through my articles I only found one from around 2021 that talked about FXML and MVC.

This ended up being a longer article than I anticipated, and Jekyll says it's an even longer read because I included 462 lines of FXML that I scooped off GitHub to make a point about how "intuitively readable" it isn't. But it's still long.

So, if you want the TDLR, here it is:

Most of the wondrous claims about how FXML instantly improves your various aspects of your application design are just rubbish - and I take some time to prove it for a few of them. It's clear that even some of the claims made in the Oracle tutorials are just wrong.

What you do get from FXML is the ability to SceneBuilder, and that should be the sole motivation for your decision to use FXML - which is actually backwards: SceneBuilder is the only motivation to use FXML. I'm also fairly certain that SceneBuilder isn't a good beginners' tool either.

The article explores how it's tougher to employ a library of custom methods and classes to simplify layout creation with FXML.

Finally, I take a look how to properly integrate FXML with a framework. In this case I use MVCI (because it's better, of course). This is probably the most important section for any of you determined to use FXML but still want to architect your applications properly, because 99% of the tutorials out there on the web just get this wrong.

If any of that intrigues you, and you want to know more, then have a look at the article:

https://www.pragmaticcoding.ca/javafx/fxml-or-not


r/JavaFX • • Dec 18 '24

Cool Project [Component Share] Infinite Grid Renderer with Smooth Scrolling

17 Upvotes

Hey JavaFX devs! I wanted to share a simple but useful component I created - an infinite grid renderer with smooth scrolling capabilities. This could be useful for CAD applications, graphing tools, or any project needing an infinite canvas.

Key Features:

  • Infinite scrolling in both directions

  • Configurable minor/major grid lines

  • CSS Styleable properties

  • Smooth rendering performance

Here's the core component code: KlonedBorn/grid-edit

Basic Usage:

// Create the grid canvas
GridCanvas canvas = new GridCanvas(800, 600);
canvas.setMinorGridSpacing(20);
canvas.setMajorGridSpacing(100);
// Configure appearance
canvas.setMinorGridLineStroke(Color.LIGHTGRAY);
canvas.setMajorGridLineStroke(Color.GRAY);
// Move the viewport
canvas.setGridX(newX);  // For scrolling horizontally
canvas.setGridY(newY);  // For scrolling vertically

The component uses a viewport concept to handle infinite scrolling, rendering only the visible portion while maintaining the illusion of an infinite grid. All grid properties are styleable through CSS or direct property access.

This is a raw version without tests or additional features - feel free to use it, modify it, or suggest improvements! If there's interest, I can work on adding more features like zooming, snapping, or coordinate systems.

Let me know if you'd like to see this expanded into a full library with more features!


r/JavaFX • • Oct 18 '23

Showcase JFX-Central running on iOS via GluonHQ

17 Upvotes