r/JavaFX • • Mar 19 '26

JavaFX in the wild! Oracle announces their "Java Verified Portfolio" program and JavaFX is part of it.

43 Upvotes

Oracle announced the Java Verified Portfolio at the JavaOne 2026 conference this week. You can read about it at https://www.oracle.com/java/technologies/downloads/jvp/

Oracle Java Verified Portfolio (JVP) Unlock a curated set of Oracle-validated Java tools, frameworks, and libraries designed for seamless integration, active support, and proven compatibility across Oracle JDK versions. With clear roadmaps, regular updates, and trusted assets backed by Oracle’s assured provenance, the Java Verified Portfolio accelerates modern development, streamlines workflows, and gives you the confidence to build, test, and deploy innovative Java applications at scale.

JavaFX was removed from the JDK after release 8 and became a separate module. This kind of sent the message that JavaFX was not important to Oracle and that it was dead. Now that it is officially / commercially supported again it should become clear that this is not the case.

Other open source projects in the JVP are "Helidon" and "Java Platform Extension for Visual Studio Code".


r/JavaFX • • Aug 23 '26

I made this! FXML/2 for JavaFX

42 Upvotes

FXML/2 is a compiled, type-safe, declarative markup language for JavaFX that I've been working on for the past several years. It borrows from classic FXML and adds lots of useful features. Here's a selection of what's new:

  1. Compile-time diagnostics: If your markup is not well-formed, it won't compile. Similarly, if your bindings can't be resolved or type-checking fails, you'll know at compile time.

  2. Elements named with fx:id can be directly referenced in the code-behind Java class (no @FXML injection required).

  3. Complex expressions with support for method calls, for example:

    • <MyControl value="${Math.max(width * 0.7, minWidth)}"/>

    • <Label visible="${:parent<Pane>.selectedItem != null && width < maxWidth}"/>

    Expressions are not interpreted, but compiled to specialized code.

  4. All binding modes that JavaFX offers are supported:

    • one-time: $foo

    • unidirectional: ${foo}

    • bidirectional: #{foo}

    • reverse: >{foo}

    • content forms: $..foo, ${..foo}, etc.

  5. Custom markup extensions. For example, you could define an I18n markup extension to look up a localized string in a bespoke way, and apply it with <Label text="{I18n settings.title}"/>.

Depending on your specific use case, you'll also notice a substantial performance increase: FXML/2 documents don't need to be parsed at runtime (since they are compiled classfiles), which removes the FXMLLoader bottleneck.

For further reading, here's the FXML/2 documentation, and a tutorial for how to use the MVVM pattern with FXML/2.


r/JavaFX • • Aug 20 '26

I made this! FlexGanttFX is now open source β€” the professional JavaFX Gantt chart framework goes AGPLv3

42 Upvotes

After more than a decade as a commercial product, I'm happy to announce that FlexGanttFX is now an open source project.

FlexGanttFX is a professional Gantt chart and scheduling framework for JavaFX, built by DLSC Software & Consulting. It has been used in aviation, logistics, manufacturing, healthcare, and resource planning applications for years - and it's now available to everyone.

What you get:

  • Canvas-based rendering engine that scales to very large data sets

  • Timeline, dateline, and eventline controls with flexible time scales

  • Activity repositories (interval-tree based for fast range queries), links, and layouts

  • Pluggable renderers for bars, progress bars, charts, high/low charts, and dependency links

  • System layers: calendar, grid lines, now-line, chart lines, DST lines, and more

  • Extra controls: status bar, toolbar, radar, layers panel

  • Single, dual, quad, and multi chart containers

Licensing: dual-licensed under AGPLv3 or a commercial license. No runtime license key is required anymore - the old key enforcement has been removed entirely, so you can just build and run.

Online Demo: https://demos.jpro.one/flexganttfx-showcase.html

Repo: https://github.com/dlsc-software-consulting-gmbh/FlexGanttFX

Docs & screenshots: https://www.flexganttfx.com

Maven Central: com.flexganttfx:view (release 12.4.0)

The repo includes a showcase app plus a dozen demo applications (airport scheduling, F1, hospital, MS Project import, space missions, factory planning, and more) so you can see what the framework can do right away.

Contributions, issues, and feedback are very welcome. Enjoy!


r/JavaFX • • Feb 03 '26

I made this! New Open Source Library Releases

42 Upvotes

Hi, I have released new versions of GemsFX, PdfViewFX, and KeyboardFX last week. A little bit of maintenance work went into them and a few small features. These are mature and real-world proven libraries that you might wanna try out.

You can find them all on Maven Central.

  • com.dlsc.gemsfx:gemsfx:3.8.3,

  • com.dlsc.pdfviewfx:pdfviewfx:3.4.2

  • com.dlsc.keyboardfx:keyboardfx:1.3.0


r/JavaFX • • Jul 19 '25

Cool Project AtlantaFX with StageStyle.EXTENDED

42 Upvotes

JavaFX 25 comes with an exciting and long-awaited preview feature: custom controls in the title bar.

To support this feature, AtlantaFX has introduced a new decorations module, which will be available in the next version along with 14 window buttons themes.

Now, we’re no longer limited to native window decorations! Yay!


r/JavaFX • • May 16 '21

I made this! Made a program using JavaFX to roll some dice! I'm at a really beginner level with JavaFX so I was pretty proud of this :)

Post image
42 Upvotes

r/JavaFX • • Feb 11 '22

I made this! Deploy your JavaFX app as native bundles for Mac, Linux, and Windows

41 Upvotes

https://www.jdeploy.com
This is a bit of a passion project I've been working on for the past couple of years off and on. I have long been dissatisfied with the options available for deploying Java desktop applications. Since the demise of Applets and WebStart (both of which produced 2nd class results), the official direction was to bundle the JRE with your app, and generate a native installer for each platform. The trouble was that you needed to have a Windows machine to build a Windows installer, a Mac for the Mac installer, and a linux for the Linux installer. And worse, if you want to distribute your Mac app to users, you need to futz with Apple's codesigning and notarization, or users wouldn't be able to run it.

This negates many of Java's cross-platform benefits.

So I decided to fix it.

With jDeploy you can publish your executable Jar file to npm, and you instantly get a download page with installers for Mac, Windows, and Linux. You don't need to futz with code signing. The installers are small (3mb compressed). When you publish updates, your users will get them automatically the next time they launch. You can publish your native bundles for all platforms, from any platform. (i.e. you don't need a Mac to build a Mac bundle, or Windows to build a Windows installer, etc...).

Please take it for a spin and let me know what you think.


r/JavaFX • • Jan 04 '26

I made this! FXFlow - Fluent UI Construction and Modelling for JavaFX

40 Upvotes

Hi everyone, I created a small framework that allows you to construct UI's for JavaFX declaratively. It is very readable and model driven. An example:

Scene scene = Scenes.create(
    Panes.vbox("form").nodes(
        "Name",
        FX.textField().value(nameProperty),
        FX.button().text("Submit").onAction(e -> submit())
    )
);

The above creates a Scene with a VBox with the style form. The VBox contains a label, a text field and a button. The text field takes its value from a standard JavaFX property.

Using Models instead of Properties

Models are ObservableValues that know when they are applicable and when they are valid. They can accept any value, but only propagate valid values:

// A model that requires at least 5 lower case chars:
StringModel nameModel = StringModel.regex("[a-z]{5,}");

Initially, this model will not be valid, and will return null when queried. Setting it to a valid value will trigger listeners which you can register in the usual way (addListener or subscribe).

A model is considered not applicable if it has a domain without any valid values:

StringModel emptyModel = StringModel.of(Domain.empty());

Domains can be swapped on a model at any time:

// change allowed values for nameModel to a specific set:
nameModel.setDomain(Domain.of("A", "B", "C"));

Attaching a model to a control (instead of a property) has a few benefits:

  • The :valid CSS pseudo class is applied to it automatically

  • The control is automatically enabled or disabled based on a model's applicability

  • The control attempts to limit itself to only values allowed by the domain:

    • Spinners and Sliders may limit their range

    • ComboBoxes may provide a list of options based on the domain

An example:

// An indexable domain with 3 values:
StringModel nameModel = StringModel.of(Domain.of("A", "B", "C"));

ComboBox<String> comboBox = FX.comboBox().model(nameModel).build();

This creates a combo box with its items populated from nameModel's domain, and its value bound to nameModel.

Helpful utilities:

The Observe class

Allows creating lazy bindings to multiple observables, and map them to a new value, similar to Bindings.createXYZBinding. Examples:

StringProperty firstName = new SimpleStringProperty("Alice");
StringProperty lastName = new SimpleStringProperty("Smith");

// Combine values; map is skipped if any value is null
ObservableValue<String> fullName = Observe.values(firstName, lastName)
    .map((fn, ln) -> fn + " " + ln)
    .orElse("Unknown");

// React automatically when either first or last name changes
fullName.subscribe(name -> System.out.println("Full name: " + name));

Or:

// Combine multiple boolean observables:
ObservableValue<Boolean> canRegister = Observe.booleans(
    subscribed,
    acceptedTerms,
    emailVerified
).allTrue();

The main benefit is that these do not rely on weak listeners, and so no reference needs to be kept to any of the values being observed. In that respect they work similar to fluent methods map, flatMap and orElse on ObservableValue.

The NodeEventHandler interface

Similar to the EventHandler interface, but with an extra parameter supplying the Node involved. This allows you to construct your UI declaratively without needing to assign a control to a variable to be able to refer to it. For example:

FX.button().onAction((btn, event) -> 
    new Alert(AlertType.CONFIRMATION, btn + " was pressed").showAndWait()
);

The Trigger class

Another tool to help with constructing UIs declaratively without needing to assign nodes to variables:

Trigger<ActionEvent> spinUpTrigger = Trigger.of();
FX.button().text("Spin Up!").onAction(spinUpTrigger::fire);
FX.spinner().apply(s -> spinUpTrigger.onFire(s::increment));

The StyleSheets class

Helper to create inline stylesheets:

scene.getStylesheets().add(StyleSheets.inline(
    """
    .root {
        -fx-padding: 1em;
    }
    """
));

Feedback appreciated

Check out FXFlow on GitHub for more documentation and examples: https://github.com/int4-org/FX

You can also include it in your project via Maven Central:

<dependency>
    <groupId>org.int4.fx</groupId>
    <artifactId>fx-builders</artifactId>
    <version>0.3</version>
</dependency>

r/JavaFX • • Jul 14 '25

I made this! JavaFx Video editor follow-up

40 Upvotes

some days ago I posted about my video editor project with javafx, i made a good progress with the timeline and the preview, i also uploaded the code to https://github.com/SDIDSA/decut

(stars on the repo are very welcome, as well as feedback in this post)


r/JavaFX • • Feb 23 '23

Cool Project pacman-javafx: A 3D & 2D Pac-Man and Ms. Pac-Man implementation made in JavaFX

40 Upvotes

https://github.com/armin-reichert/pacman-javafx

Note: I am not the author of this project. It was started little more than 2 years ago and today while randomly browsing GitHub for JavaFX games I found this and also that 1.0 was released yesterday.

The release only contains binaries for Windows so you'll have to compile it yourself if you are not using Windows (just follow the README and then do what the run.bat does but manually, it's just a few "mvn clean install"s in different directories).

To begin:

  1. Press 5 to insert credit

  2. Press 1 to start game

To switch perspective (3D):

  1. ALT+3 to switch to 3D scene

  2. ALT+RIGHT or ALT+LEFT to cycle through perspectives. I found "Perspective: Total" to be the best 3D perspective.

To turn on picture-in-picture and see the 2D on the top-right edge, press F2.

These were just the most important hotkeys, the rest are listed in the README. There is a dashboard that is mentioned in the README and appears in the code but for some reason I couldn't get it to open (edit: this was due to the default configuration of my OS disabling F1 for some reason. not an issue with the program).

There's even some cheats, which can be quite useful to make you not die while you're testing different things!


r/JavaFX • • May 23 '23

I made this! TreeMapFX: A simple TreeMap chart component

39 Upvotes

r/JavaFX • • Mar 23 '20

JavaFX 14 Released

Thumbnail
infoq.com
39 Upvotes

r/JavaFX • • May 22 '26

I made this! New AtlantaFX Themes

37 Upvotes

I have created a couple (25) of new themes for AtlantaFX. You can find them in this repo: https://github.com/dlsc-software-consulting-gmbh/atlantafx-themes

There is also a website that shows previews for each one of them: https://dlsc-software-consulting-gmbh.github.io/atlantafx-themes/


r/JavaFX • • Jul 18 '25

Tutorial New Article: Reactive GUI Design in JavaFX

37 Upvotes

We had this thread a while back about converting from Swing to JavaFX, and I posted that I thought the most important difference between the two was the JavaFX supports Reactive GUI design. Which got me to thinking that I've talked around this before, but never really explained how Reactive GUI design is better than Declarative/Imperative GUI design.

So I wrote this article.

In it I explain what Reactive GUI design is, and how the JavaFX implementation differs from other Reactive environments that people might have encountered. Then I look at how Reactive design makes your applications simpler and easier to maintain.

I think it's a shame that nothing out there, especially in the "official" documentation and tutorials talks about JavaFX as a Reactive framework. It's not really obvious, either. Especially if you've never had any experience with Reactive frameworks and don't know what to look for.

I did a web search for "JavaFX reactive", and I found virtually nothing. Most of the results pointed to articles about integrating back-end reactive frameworks like RxJava with JavaFX, the remainder were fairly lame introductory articles that listed a few observable classes and little else.

I'm hoping that this article can fill an information void, and help some people avoid the pain of building Declarative/Imperative GUI's in JavaFX when there is a better alternative.

https://www.pragmaticcoding.ca/javafx/elements/reactive-javafx

Let me know what you think.


r/JavaFX • • Dec 19 '21

Moderator State of the sub: New moderation

37 Upvotes

Hi everyone, if you've lurked around in this sub for the past year you will probably have noticed the prior moderation team was inactive. I initiated a request to take over the sub as the new benevolent dictator moderator which you can find here.

Here's what I've done so far:

New wiki

I intend to create more pages to consolidate useful information pertaining to JavaFX and the sub. Ideally sub-pages like "Common Problems" will be fleshed out and used to quickly address common help posts.

Updated the rules

The main change is additional rules to curb spam posts. These rules are basically the same as /r/java's so they're nothing too crazy. I've also banned a few blog-spam bot accounts that had accumulated dozens of user reports.

Spam is not directly listed as it is a site-wide rule.

Updated the side-bar with updated resource links

This is only visible if you're using old.reddit.com or using an 3rd party app like RedditIsFun, the redesign limits side-bar customization

Updated the reddit redesign appearance

I re-created the old.reddit.com style side-bar with the redesign widgets. The useful resources and related subreddits should show up on both now. Plus on the redesign you can filter showing posts by their flair.

I moved the discord tab to the side bar and added a wiki link as a tab so it more closely resembles the old.reddit.com layout too.

Here's what I plan to do:

Bring on additional moderators

Ideally I'm looking for users that are already helpful or highly knowledgeable in JavaFX who are willing to contribute to creating a helpful wiki and occasionally check out the moderation queue (Approving posts auto-flagged by reddit, removing actual spam posts).

This sub has a relatively slow pace / low-traffic so its not that hard to be honest. Clearing the existing moderation log (which had content as far back as 4 years ago) took less than an hour all on my phone. So don't sweat it if you're usually busy. And you aren't expected to do all the tasks. If you only want to contribute to the wiki that's perfectly alright.

Expand the wiki

As explained before, I want to create a wiki that can help the users of the sub with easy to access information. What I got so far is:

If you have any ideas of what should be added, please feel free to leave a comment. Additionally if you're aware of a great resource that would enhance the wiki feel free to share those too. An example of this would be JPackageScriptFX which is now linked in the common-problems page.

TLDR

I was tired of spam so I took the place over and am now looking to improve things. Feel free to ask questions or make suggestions.


r/JavaFX • • Aug 02 '25

Cool Project TextMate (VSCode) syntax highlighting for JavaFX

36 Upvotes

r/JavaFX • • 1d ago

I made this! JavaFX Packaging: A Developer's Guide (Demo / Guide Repo for teaching developers how to Package JavaFX Applications via Maven)

35 Upvotes

A few months ago I came here and asked how best to package JavaFX applications. I was met with people pointing me at third party tools (that abstract away the details and theory), people's own personal setups, but with little context of how / why they were setup like that and other "not quite what I was looking for" guidance.

God knows the official documentation doesn't make it easily clear. As such, it seemed there was a legitimate gap on what, to me personally, seems like a pretty fundamental step of using JavaFX.

So I decided to say "sod it" and make my own guide.

Here is a link to the repo of the project

It is quite simply a default "HelloApplication" project, but with a pom.xml setup to package the application into an OS-specific distributable that, should be JDK/JRE independent (i.e. self-contained).

Along with this, there are several markdown documents explaining the workflow of the packaging solution, along with details on each of the steps of the workflow (i.e. each plugin, the properties in the pom.xml ,etc).

The only limitation now is, I am but one developer on one Operating System (CachyOS) and would love other contributors to provide insight into the per-distro / per OS requirements (such as specific build tools like the WiX toolset), as they are quite sparse as of the moment, with that sparse nature being identified within the documentation itself.

Either way, I hope this helps anyone who, like me a few a months ago, struggled to find an explanation of how to set up packaging a JavaFX app, and was shocked to find there was next to nothing out there. πŸ˜„


r/JavaFX • • Mar 13 '26

I made this! rewrote my Java project... 8k+ lines of code later, it's done!

35 Upvotes

For context, this was my original creation. It's basically an app which counts down the days till a deadline.

After collecting feedback, I decided to do a complete rewrite and do things better. Sharing some of the biggest changes I made and the reason behind them. Also, still looking for feedback as I figure out what to improve.

Using a list layout

One of the biggest changes I made was choosing to use a list layout instead of the old "block" thingies. I realised that the "blocks" from the previous version wasn't very space efficient and seemed to make the names of Countdowns really difficult to read, especially when there were many Countdowns added.

Doing away with folders

Initially, folders were my way of allowing users to keep things organised. However, I thought hiding Countdowns (within folders) in the name of "staying organised" was just asking to be blindsided by deadlines. So, I decided that all Countdowns should always be visible, on a single page. The new Legends system serves to colour-code them, keeping them relatively organised.

Implementation of "patient" Mark-As-Complete buttons

I took some inspiration from other To-Do applications; when marking a Countdown as complete, the Countdowns would "wait" for a certain period of inactivity before all of them were removed from the active list. To my non-programmer friends, this was probably a no-brainer and seemed like a "duh of course you should add it" kind of thing, but for me... it was quite a crazy undertaking. But to keep things brief, when a user clicks on the Mark-As-Complete button, the Countdown is added to an ObservableList. When there's a change in the list's children, a timer starts (or gets reset if it is already running). When the timer ends, all the Countdowns in the ObservableList are removed; I used JavaFX's PauseTransition to act as a concurrent waiting period. You can have a look at the implementation here

You can check out the full source code and/or try it out here: https://github.com/n-xiao/mable
Pre-built binaries are available for MacOS and Windows :)

lmk what you think! thanks!


r/JavaFX • • Feb 24 '25

I made this! πŸš€ NFX Icons – 5,400 JavaFX Icons with Easy Integration!

35 Upvotes

I've just released NFX Icons, a simple JavaFX icon library with over 5,400 icons, simple API usage, and CSS support!

πŸ“Œ GitHub Repo: NFX Icons

πŸ”— All feedback and contributions are welcome! Let me know what you think, and feel free to suggest new icons or improvements. πŸŽ‰


r/JavaFX • • Jun 09 '26

I made this! Created a simple, minimal Canvas Application in JavaFX

Post image
34 Upvotes

r/JavaFX • • Mar 28 '26

JavaFX in the wild! Oracle is reintroducing JavaFX commercial support

34 Upvotes

Hi,

Just wanted to share this for anyone who missed it. Oracle is reintroducing Javafx commercial support for JavaFX.

Hopefully, this does not challenge Gluon in their business model because they have worked hard to keep the product relevant!

https://www.oracle.com/fr/news/announcement/oracle-releases-java-26-2026-03-17/


r/JavaFX • • Dec 31 '25

I made this! A little something I've been working on... what do u guys think?

34 Upvotes

hello there, i'm making a free and open source JavaFX app (which i'll prolly link here tmr or this weekend) and i was wondering if it interests anybody... it's quite far from done; there's a sidebar that i need to add in and a folder system to be implemented but the basic idea is there. lmk what ya'll think. btw, i was inspired by the Bears countdown app and Excalidraw GUI haha


r/JavaFX • • May 11 '25

Showcase Drawing OpenGL to JavaFX

Thumbnail
youtube.com
34 Upvotes

r/JavaFX • • Oct 11 '22

Release AtlantaFX 1.1.0

34 Upvotes

This release is focused on improving existing controls and themes, but there are also lots of changes in Sampler app the most important of those is that Sampler now supports external themes. So, creating your own JavaFX theme is as simple as cloning theme template repo.

You can find detailed changelog on releases page. I suppose next releases will be focused on adding some new controls and layout helpers.