r/JavaFX • • Mar 24 '26

Help Request: Looking for a maintained JavaFX docking framework

11 Upvotes

Could you suggest any maintained and supported window docking framework for JavaFX?

Whatever I could find looks pretty stale and dead at the moment:

Also found https://github.com/Beowolve/SnapFX

But this one is not released.


r/JavaFX • • Aug 18 '25

Discussion My experience switching from Java swing to JavaFX

Thumbnail reddit.com
11 Upvotes

r/JavaFX • • May 12 '25

I made this! COCO Annotation Viewer

11 Upvotes

https://github.com/trinity-xai/CocoAnnotationViewer
Recently added support for the COCO annotation standard for images inside Trinity XAI. Decided to make the test app available as a standalone project.


r/JavaFX • • Feb 06 '25

Cool Project MVVM4FX: a tiny library for developing JavaFX applications using MVVM

11 Upvotes

The library provides all the necessary interfaces and base class implementations for creating components, which serve as the units of the MVVM pattern. Examples of components include tabs, dialog windows, toolbars, image viewers, help pages, and more.

Each component has template methods initialize() and deinitialize(), which manage its lifecycle. This simplifies the contol of initialization processes, dependency setup, and resource cleanup when the component is removed.

Key features include:

  • Support for the component lifecycle.

  • Organization of core tasks within the view.

  • Component inheritance.

  • Ability to preserve component history.

  • Designed without considering FXML support.

  • Detailed documentation and sample code.

Check it out here: mvvm4fx

We developed this library for our own projects, but we'd be happy if it can be useful to others as well.


r/JavaFX • • Jan 22 '25

Help How to "deploy" my JavaFX app?

11 Upvotes

Like how do I share it with other people.


r/JavaFX • • Dec 26 '24

Tutorial New Article: Custom Styleable Properties

11 Upvotes

I was working an article about creating reusable custom TableColumns, and I hit a section about creating custom StyleableProperties for the TableColumn. I realized that I would be getting pretty deep with this stuff, and it would get off topic if I tried to explain it fully in the TableColumn article. So I took a side trip to write an article about custom StyleableProperties - and then I could just link to it in the TableColumn article.

And that ended up being quite a side trip.

In a nutshell, creating a custom Property that you can control from a Style Sheet isn't really that complicated, but the JavaDocs aren't a lot of help if you want to understand what you are doing. So this article should sort all that out.

One of the aspects of creating these StyleableProperties is that you can only really implement them in named classes that extend some other kind of Node. You can't just create them on-the-fly and deploy them in your layouts willy-nilly.

Or can you?

The first part of this article shows how to do this. It takes a minimum amount of set-up (meaning creating some simple utility classes), but it can be done. Even more, it can be done in about 3 or four lines of code in your layouts. It's really cool, and I think it's worth reading the article just to see how this works, although it does break a bunch of "rules" in the JavaDocs.

The second part of the article walks through a more traditional expansion of the StyleableProperties available in a standard Node class. In this case adding some formatting options to Label to handle fixed place decimal numbers.

You can find the article here: https://www.pragmaticcoding.ca/javafx/elements/styleable-properties


r/JavaFX • • Aug 26 '24

Discussion Have you ever tried JavaFX with Spring?

11 Upvotes

Has anyone ever tried developing a middle/large JavaFX application with Spring? I mean using Spring specifically for building frontend, not backend services. What pattern did you use (e.g. MVVM, MVC)? How do you evaluate the combination of these technologies? Was it worth the effort?


r/JavaFX • • Apr 04 '24

Help Random portions of the UI flashing white. No exceptions logged. No clue what the issue is.

11 Upvotes

r/JavaFX • • Dec 13 '23

Discussion FXML, a good design choice?

11 Upvotes

I attempted to develop a JavafX maze-generation application using an MVC architecture as a beginner. https://github.com/gchapidze/maze-gen

When I initially started using FXML, I didn't like that it was a separate XML-style language that mapped controllers and views to one another. So I got suspicious if it was a wise design choice to have so many view components injected into controller.

It would be ideal if the GUI builder could inject objects into View's java class and fill their geometric coordinates. I don't believe a FXML builder would have been useful in addition to that.

IMO, the most fascinating aspect of JavaFX is bindings which I think can simplify GUI design, but in tutorials and courses almost no one uses it to decouple view from model and I was not able to get my head around it. (So I ended up with bad GUI design, which is not MVC at all)

Question is: How should Javafx GUI development be done?


r/JavaFX • • Oct 04 '23

Tutorial Math Visualization with JavaFX: Creating a Graphical Calculator

11 Upvotes

In the world of mathematics, visualization plays a pivotal role in understanding complex concepts and solving intricate problems. One effective way to enhance mathematical understanding is by creating a graphical calculator. In this article, we will explore how to build a graphical calculator using JavaFX, a powerful framework for building interactive user interfaces. We will also use the org.mariuszgromada.math.mxparser library to handle mathematical expressions. By the end of this article, you will have a fully functional graphical calculator at your fingertips.

🔗 Math Visualization with JavaFX: Creating a Graphical Calculator


r/JavaFX • • Sep 11 '23

Tutorial Internationalization in JavaFX: Building Multilingual Apps

11 Upvotes

What is Internationalization and Localization?

Internationalization (i18n) is the process of designing your application so that it can be easily adapted to different languages and regions without code changes. This typically involves separating user-interface text and other locale-specific data from the application’s code. Localization (l10n) is the process of translating and adapting an internationalized application to a specific locale or language. This includes translating text, formatting dates and numbers, and adjusting other cultural aspects.

🔗 Internationalization in JavaFX: Building Multilingual Apps


r/JavaFX • • Aug 02 '23

Tutorial JavaFX TreeView: Organizing Your Data in Hierarchical Structures

11 Upvotes

Customizing TreeView with Graphics

JavaFX TreeView allows you to customize the appearance of tree nodes by using graphics or icons. Let’s create an example where we display icons for each language:

🔗JavaFX TreeView: Organizing Your Data in Hierarchical Structures


r/JavaFX • • Mar 24 '23

JavaFX in the wild! JavaFX links of the week for March 18th-24th 2023

11 Upvotes

You can follow Frank Delporte on Twitter and and Foojay.social to get these "Links of the Week" updates as soon as they happen.


r/JavaFX • • Oct 21 '22

Discussion This useful 4-line PR has been sitting on the OpenJFX Gradle Plugin repo for 1.5 years now

11 Upvotes

https://github.com/openjfx/javafx-gradle-plugin/pull/103

The JavaFX Gradle plugin has a platform property which is used to get the appropriate Maven dependency for the current platform. So if you are running the build on Windows for example, it will use the win dependency.

This makes sense, but when you use JLink to create a runtime for your application to be run on other operating systems, this all breaks apart. Why? Because the platform property cannot be changed, it is auto-detected in all cases.

So this very simple PR was made to fix the issue (it just makes it non-final and adds a setter & updates the dependencies on change). But as with everything Oracle and Gluon, there's the agreements where you need to provide your personal details which I think discouraged this contributor.

The user didn't do that, so this PR is completely ignored. At this point, they can literally just close the PR and make the change themselves. We that use JLink and want to target other OSes than the one it is running on need to remove the JavaFX plugin and manually declare the dependencies.

I'm just hoping somebody at Gluon or somebody that has accepted the agreement can do something about this..


r/JavaFX • • Oct 14 '22

I made this! jSQL-Gen -> GUI for generating JDBC code

11 Upvotes

A free and open source Java SQL (JDBC) code generator GUI, built with JavaFX.

Removes boilerplate code and makes it possible to use SQL databases without writing one line of SQL.

Let me know what you think! https://github.com/Osiris-Team/jSQL-Gen


r/JavaFX • • Aug 18 '22

Discussion What happened to JFX-Central?

11 Upvotes

It was a great website with regular news posts. One of the few if not the only one remaining. Now it has joined the others in the graveyard. Last post, 28th of February 2022. How is an amazing UI toolkit supposed to gain usage, awareness and contributors, if all sources of news and information just keep dying? Every. Single. Blog. Is. Dead. Even this subreddit. What's up. Will I even get replies on this post? Doubtful. It's just such a shame.


r/JavaFX • • Mar 25 '22

Cool Project RichTextFX: Open source libraries for making a text viewer / editor

11 Upvotes

I'm writing a text viewer (which will hopefully evolve into an editor). I'm new to JavaFX and as a learning challenge I hacked a text viewer that gracefully handles up to half a million lines of text. My next task was to research how others do this (I know, I shoulda done this first). And while at first this information was hard to find (question modded down on stackoverflow 🙃), I found some kickass libraries by Tomas Mikula which a commenter there referenced and which I want to share:

  • RichTextFX - This fits the bill. It uses following subcomponents..

  • ReactFX - For cleaner, easier-to-reason event handler composition. Nice!

  • Flowless - Those text lines (in my example) won't all fit in memory. This "lower level" library provides better clean up for unused cells than the underlying machinery that for eg ListView provides.

Well thought out, well documented. Very impressive. I'm liking this ecosystem!


r/JavaFX • • Jan 25 '22

Tutorial Demystifying Pseudo Classes

11 Upvotes

I've used Pseudo Classes for years, but I've always considered them a heavyweight structure that involves extending a Node class to add in a BooleanProperty which I can then tie to the PseudoClass - just like the JavaDocs show.

I've been working on a JavaFX "Wordle" clone, and I wanted to use Pseudo Classes to control the colours of the boxes for the guesses, and the Buttons in the keyboard. That seems like it would be difficult because there's different colours for "unchecked", "wrong", "present but wrong spot" and "correct".

Doing it the way I've always used Pseudo Classes was pretty much a non-starter. So I ended up peeking into the JavaFX source code to see what's really going on under the hood and I was a bit surprised at what I found.

It turns out that Pseudo Classes are way, way simpler to use than the JavaDocs would have you think. You can implement one in about 3 lines of code, if you want, and doing the kind of thing like I needed for "Wordle" is almost trivial.

Here you go, if you're interested:

The Article


r/JavaFX • • Dec 21 '21

Help JavaFX all platform build pipeline starter kit?

11 Upvotes

Is there a starter project that just works.. ie is setup to build and quick to test for desktop (win/linux/osx) and android/ios? .. I have used Javafx before with scenebuilder and done a few smaller desktop apps in the past.. which were fine for windows I did that a few years ago.. but I'm wanting to target all the platforms now especially win/linux/android..seems like 2021 and java land still seems like dead end compared with going with some other language instead like c#/js react etc..

...I tried with gluon.. but it seems they want to stick a splash screen over even desktop deployments which was kinda lame, not really interested 500$ a year license for some hobby stuff.. is there no other way of getting something working.. graalvm and web builds would be great aswel... seems like most the hassle with java/fx is the insane amount of pipeline setup and trying to figure out how to get things setup to start with and most the training material all seems outdated.


r/JavaFX • • Dec 20 '21

JavaFX in the wild! JavaFX Links of the Week

11 Upvotes

The "JavaFX Links of the Week" for December 13th can be found on JFX-Central : https://jfx-central.com


r/JavaFX • • Sep 02 '21

Cross post from r/java: My small tool created with JavaFX with GitHub release pipeline

Thumbnail reddit.com
11 Upvotes

r/JavaFX • • Aug 16 '21

I made this! HangMan in JavaFX

11 Upvotes

I created a simple HangMan game in JavaFX just to see what how little code it would take to do it.

I was pleased with the results. It looks reasonably polished, grabs random words from the Internet and took very, very little code to create.

I've created a blog entry about the coding: HashNode Blog

The complete code can be found on GitHub


r/JavaFX • • Apr 18 '21

Any updated icons library for Java FX using Maven?

11 Upvotes

Hi! I am developing a university project using Java FX for the views and I'm having trouble finding a way to use an icon library such as Icons8 or FontAwesome in Java FX (I am a Javascript + React guy). Any ideas on what could I use and how? I'm pretty new to Java FX and Maven.

Thanks in advance!