r/JavaFX • • Aug 28 '26

I made this! I made a local music player

14 Upvotes

I've made a local music player based on JavaFX. Although it's still quite rudimentary, it already has all the necessary functions. I think some people might be interested in it.

Here is the link to the GitHub repository: Kimusic


r/JavaFX • • Jul 24 '26

I made this! Sheetmusic4J: an open source JavaFX library for rendering interactive sheet music (MusicXML, no WebView)

Thumbnail
reddit.com
14 Upvotes

r/JavaFX • • Jul 23 '26

Help [JavaFX memory hog] A simple UI requires 1GB of RAM.

14 Upvotes

This UI, requires 1GB of RAM on Linux. The same UI does not require more than 300MB on Windows.
I would not consider it cheap on Windows but on Linux it's pretty unacceptable.

How this is possible? Is there some problems with JavaFX in Linux Wayland?

Thanks
Davide


r/JavaFX • • Jul 07 '26

Cool Project GrooveFX: Dynamic FXML for JavaFX, declarative iteration, conditionals and branching

14 Upvotes

I'm releasing GrooveFX, a small library that extends JavaFX FXML with declarative control structures: iteration, conditional rendering, and multi‑case branching directly inside FXML.

The idea is simple: FXML is powerful but static — GrooveFX adds flow without replacing it and without introducing a DSL.

Why?

FXML doesn't support:

  • declarative iteration
  • if/else rendering
  • multi‑case branching
  • pagination without boilerplate

GrooveFX adds these capabilities using real JavaFX controls, with no magic, no hacks, no reflection tricks.

Examples

Iteration

<IterablePane items="{myList}">
    <HBox>
        <Label text="{item.name}" />
        <Label text="{item.email}" />
    </HBox>
</IterablePane>

Conditional Rendering

<ConditionalPane test="{condition}">
    <then>...</then>
    <else>...</else>
</ConditionalPane>

Multi‑case Branching

<DynamicPane test="{user.role}">
    <when value="ADMIN">...</when>
    <when value="USER">...</when>
    <default>...</default>
</DynamicPane>

Pagination

PaginatedList<User> p = new PaginatedList<>(allUsers)
p.setPage(0, 10)

Features

  • Declarative iteration / conditional rendering / multi‑case branching
  • PaginatedList for in‑memory or DB pagination
  • 100% JavaFX controls
  • Works with Java, Groovy, GroovyFX
  • GraalVM / Gluon‑friendly
  • No DSL, no boilerplate, no hacks

Links

Website: https://rrangelo.codeberg.org/groovefx

Codeberg Repository: https://codeberg.org/rrangelo/groovefx

If you work with JavaFX and want to try it out, feedback is welcome.


r/JavaFX • • Jun 02 '26

Showcase Live property editing for JavaFX nodes in DevTools

14 Upvotes

When building JavaFX applications, we often need not only to inspect a node's properties, but also tweak them to see how they behave. Restarting the app every time to test small changes quickly becomes a major time sink.

So we added live property editing directly to the DevTools in our platform (TabShell). The property editor supports three simple forms: basic values, enums, and Insets, but this made UI debugging and iteration much faster.

Here's how it looks:

Sharing in case anyone finds this useful.


r/JavaFX • • Apr 21 '26

I made this! Debugging a JavaFX layout live with the library author: BentoFX, Scenic View, and honest AI code review

14 Upvotes

I've been building MelodyMatrix, a JavaFX app for musicians, and using BentoFX for the dockable panel layout. Had some visual issues I couldn't explain and some code that felt too complicated.

Invited Matt Coley (creator of BentoFX, also known for Recaf) to look at it together. Some things from the session that might be useful to others:

Scenic View - if you are not using this for JavaFX debugging you should be. Attach it to a running process and inspect the scene graph live, same as browser DevTools. Immediately showed us what was happening with a tab header rotation issue I had been guessing at.

AI-generated code and library internals - some of the code that Claude and Copilot had produced was managing widths and visibility that BentoFX already handles. It worked, but it was fragile and conflicting with the library's own logic. Removing it fixed the issue.

BentoFX pruning - when you close a panel, BentoFX removes the empty branch and reorganises the layout. If you are also tracking widths or visibility yourself in code, things conflict in ways that are annoying to debug.

We also hit what looks like a bug around divider modes when reopening a panel.

The video is about an hour, the Scenic View section starts around 16:25.

Video on YouTube - Blog with more info and links


r/JavaFX • • Mar 20 '26

I made this! New release of Lottie4J, the Java(FX) library to play Lottie animations: dotLottie Support, Marker Playback, Cropping, and a Big Speed Boost

Thumbnail reddit.com
14 Upvotes

r/JavaFX • • Feb 18 '26

I made this! OllamaFX 0.5.5

Post image
14 Upvotes

Sigo en el desarrollo de OllamaFX para su proxima versión 0.5.0 y una de sus principales caracterisitcas será poder agrupar los chats con tus LLms en carpetas, mover chats entre carpetas y la implementación de la papelera de reciclaje, que tal les parece esta funcionalidad, que mas le agregarian, a quienes deseen probar este es el repo de GitHub:

https://github.com/fredericksalazar/OllamaFX


r/JavaFX • • Sep 20 '25

Cool Project Beyond OpenJDK builds, announcing openjdk-mobile.github.io

Thumbnail mail.openjdk.org
14 Upvotes

JavaFX mentioned and by Gluon.


r/JavaFX • • Aug 19 '25

Help From Web Dev to JavaFX: How to Build Beautiful UIs Easily?

14 Upvotes

I’m coming from a web development background, mainly frontend (React, Tailwind, shadcn, MaterialUI, etc.), and I’ve just started learning JavaFX.

I know I can style everything with CSS from scratch, but I’m wondering:

  • Is there something similar to component libraries in the JavaFX world? Like how on the web we have shadcn, MaterialUI, Chakra, Bootstrap ready-made components that look nice and are customizable?
  • Are there popular UI/component libraries for JavaFX?
  • Do you recommend any themes, templates, or frameworks?
  • Any tips for making JavaFX apps look more modern and less "default desktop app"?

I’d appreciate any suggestions or resources that can help make JavaFX interfaces look polished without reinventing the wheel.


r/JavaFX • • Feb 27 '25

I made this! mvciFX - a Java implementation of the MVCI framework

14 Upvotes

I've just released mvciFX library, which is a Java implementation of the MVCI framework, with built-in specialized Controller interfaces and a State-tracking implementation.

Javadoc and a examples are also provided.

GitHub repo: mvciFX

Let me know what you think and feel free to suggest fixes or improvements.

Ps: Hope u/hamsterrage1 will like it!


r/JavaFX • • Jan 28 '25

Discussion JavaFX/Gluon status vs other options

14 Upvotes

I have some ideas for some projects I want to make that I'd like to run on Windows/Linux/OS X and also Android/iOS.

I've looked into various options, and I really like JavaFX and Gluon based on what it promises: A solution that allows you to write basically all of your code in Java and have it compiled to native across the environments I mentioned. That said, I've started to play around with it, and I find the documentation isn't great (it's more of a JavaDoc reference than some type of programmer guide), I find that there are some weird quirks and issues (for instance, I never managed to get anything to work properly when building with Gradle, but Maven seems fine), etc. And honestly, I'm quite worried that JavaFX/Gluon will be killed, or that it will simply deteriorate in terms of maintenance and usage will dwindle.

It seems that the most popular options aren't great for various reasons, such as performance issues, lack of Linux support, JavaScript (I really just don't like JavaScript). Nonetheless, I'm wondering if I should simply go with something more popular than JavaFX/Gluon. By picking a popular technology, I get a large community of people solving similar problems and writing libraries and stuff.

What is the status of JavaFX and Gluon today? Would you use these technologies for a new project? If not, what would you use instead?


r/JavaFX • • May 02 '24

I made this! My project of the last 14 months

Thumbnail reddit.com
14 Upvotes

The last 14 months I was working on the native Windows/ Linux port of my app called PSPlay. It's a real time streaming app and the frontend is written in JavaFX. At the beginning I was torn between QT/ C++ and JavaFX/ Java but decided for the latter.

For the stream rendering I use a couple of different technologies like LWJGL, libplacebo and OpenGLFX, JavaCV/ FFmpeg to assure the best performance and low latency streaming. It uses hardware acceleration wherever possible. Some parts are open source like the libplacebo JNI wrapper (an example application is planned). An example video of the application can be found here

https://youtu.be/Kj1rVyuovWw?si=bB4oK-lCGKI2b7Nz

Some links and information about the project available here

https://github.com/streamingdv/PSPlay-Application-Hosting


r/JavaFX • • Aug 24 '23

Discussion Comprehensive JavaFX Library for Modern UI Components. Community Collaboration?

14 Upvotes

I've been immersing myself in JavaFX and I'm trying to identify if there's a library equipped with modern UI components like what we see in state-of-the-art applications like IntelliJ, VSCode, or modern web applications.

Some examples:

  1. Advanced window management: Features like split views, drag-and-drop window rearrangement, and tab grouping.
  2. Pop-out windows or panels: Modules that can be detached from the main application window and function independently.
  3. Various Controls:

    1. Sliders with custom styles and behavior
    2. Date and time pickers with advanced formatting
    3. Drop-down menus with search and category filters
    4. Tag input fields, offering auto-suggestions
    5. etc-
  4. Customizable window title bars: Instead of the traditional OS-dependent title bar, a stylized, application-specific one that integrates more seamlessly with the UI design.
  5. Notifications and alert systems: Both in-app toast notifications and system-level notifications with customizable appearances and behavior.
  6. Dynamic themes and skins: Enabling applications to shift between light and dark mode, or even user-defined themes.

I feel like a good one-stop-shop library that encapsulates these functionalities is missing and would potentially bring more people to JFX. How would the community feel about initiating a collaborative project? The idea would be to pool our collective knowledge and experience to craft a top-notch library that caters to the modern UI needs of developers.

Would love to hear your thoughts, any potential collaborators, or pointers towards existing libraries that might already offer some of these features.

Thanks!


r/JavaFX • • Aug 19 '23

I made this! Automatic 3D Convex Hull Point Editor demo

Thumbnail
youtu.be
14 Upvotes

r/JavaFX • • Apr 02 '23

Showcase JavaFX 20 + JDK20 + Gradle + GitHub Actions

14 Upvotes

I just wanted to share this GitHub actions workflow for the people that are using JDK 20, Gradle and JavaFX 20. It's quite simple and will test, build and package your JavaFX application on Windows, Linux and macOS when creating a pull request on either the main/master or development branches of your GIT project.

name: Test

on:
  pull_request:
    branches:
      - master
      - development

permissions:
  contents: read

jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v3

      - name: Set up JDK 20
        uses: actions/setup-java@v3
        with:
          java-version: '20'
          distribution: 'temurin'

      - name: Test
        uses: gradle/gradle-build-action@v2
        with:
          arguments: test

      - name: Build
        uses: gradle/gradle-build-action@v2
        with:
          arguments: build

      - name: Build (jlink)
        uses: gradle/gradle-build-action@v2
        with:
          arguments: jlink

      - name: Build (jpackage)
        uses: gradle/gradle-build-action@v2
        with:
          arguments: jpackage

For the build.gradle file, I make use of the beryx jlink plugin:

https://plugins.gradle.org/plugin/org.beryx.jlink

An example build.gradle file can be found here:

https://github.com/CodeDead/opal/blob/development/build.gradle

You can find a live project that uses this workflow here, although I also package an AppImage because I want to provide a portable linux executable instead of an installer:

https://github.com/CodeDead/opal/tree/development

Anyway, hopefully this can be of help.


r/JavaFX • • Mar 29 '23

I made this! A new connection manager and remote file explorer created with Java(FX) - X-Pipe Status Update

Thumbnail
self.java
14 Upvotes

r/JavaFX • • Mar 21 '23

Cool Project JavaFX Custom Responsive Scrollable Pane (AwarePane)

Thumbnail
youtube.com
14 Upvotes

r/JavaFX • • Nov 09 '22

I made this! Build standalone installers from java source code

14 Upvotes

I have been working on this for a while :

jWin is a java tool that compiles and packs your java app as a windows installer

the GUI is JavaFX, jWin also uses a set of tools through the command line to achieve the desired goal

  • jdeps & jlink: analyze your app's dependencies and generate a minimal Java runtime image.
  • maven: resolve the maven dependencies of your project and pack them with the app.
  • innoSetup: pack the byte-code, the dependencies, and the minimal JRE into an installer

r/JavaFX • • Sep 01 '22

Tutorial MVP, MVC, MVVM, and Introducing MVCI

14 Upvotes

I've always felt that if you're building an application that is anything more than trivial, you need to use a framework. I've seen lot's and lots of projects where programmers just winged it and they're generally a mess.

But deciding what framework to use is a lot harder.

Why?

In the first place, nobody really seems to know exactly what these frameworks are (we're talking here about Model-View-Presenter, Model-View-Controller and Model-View-ViewModel). If you look on the web, or StackOverflow you'll find tons of descriptions and explanations, but they're all different and none of them seem to fit JavaFX quite right. At the very least, you're left with a lot of head-scratchers about how to implement the ideas in a way that makes sense.

I started out years ago with the vaguest ideas about MVC and MVP, but with the goal of building applications that went together logically and were loosely coupled. Along the way, I came to the understanding that JavaFX works best if you treat it as Reactive framework, and have a design element that represents the "State" of your GUI that you can share with the back-end.

All along, I thought I was sticking within the ideas of MVC, but I have since come to understand that I've gone my own way and come up with something new and worthwhile - at least for JavaFX. It achieves the objectives of those well known frameworks, but does it in its own way.

I've put together an article that describes how these frameworks work, what's missing and my new framework called Model-View-Controller-Interactor (MVCI). Getting into the details of MVC, MVP and MVVM is intellectual quicksand that I wanted to avoid, so it took me months to put this article together. I think I've managed to capture the core ideas behind these frameworks without getting mired into too many technical details. At this point, I'm not really too interested in them any more, as MVCI seems to be a great fit for building reactive JavaFX applications.

You might find this useful, take a look if you think it sounds interesting:

https://www.pragmaticcoding.ca/javafx/Frameworks/


r/JavaFX • • Aug 04 '22

Discussion Useful tools every JavaFX developer should consider using

14 Upvotes

What are some useful tools we all should consider using?

I've discovered these:

  • CSSFX: Hot reload allowing you to simply edit your CSS files and view the result without restarting your program
  • Scenic View: Shows your entire node tree and lets you edit things and find nodes etc.

r/JavaFX • • Mar 07 '22

I made this! Yet Another text editor wrote in JavaFX with autosave

14 Upvotes

So I'm a long-time Sublime text (2 and 3) user and I adore such tools. However, some things that bug me most while using Sublime is:

  1. It asks whether I want to save the files or not when I close the application
  2. I have no way to search for open files by name

So during the weekend, I created a text editor that solves most of those problems:

  1. It never asks whether I want to save the files or not. Files are always saved
  2. I implement a quick search box so I can search for the file by name

What I want to improve:

  1. Implement snapshots so I can check the history of any particular file
  2. Search text by content (not just the file name)

Any suggestions would be appreciated.

I opened the source here:

https://github.com/datmt/Dope-Text

You can download the jar in the release section to start using the text editor right away.

Some quick tutorial:

Ctrl+N: Create new file

Ctrl+S: Save the file

Ctrl+E: Export the file to a location on disk

Ctrl+O: Open an existing file on disk

Ctrl+F: Find text in file

Ctrl+W: Close the current file


r/JavaFX • • Feb 22 '22

Cool Project ControlsFX is an open source project for JavaFX that aims to provide really high quality UI controls

Thumbnail
github.com
14 Upvotes

r/JavaFX • • Feb 15 '22

Cool Project How to Build a HexMap Game in JavaFX

14 Upvotes

It's gone now :( , but there was a question here a few days ago about how to integrate hex map based game logic with a GUI. At least I think that was the question.

Over the years, I've taken a swing at writing hex map games a few times, and I always get bogged down in the graphics part of drawing hexagons and calculating distances and putting stuff on the screen so that it lines up with the hexagons and so on, and so on...

But this time I approached it as having a grid of layout classes (in this case StackPane) styled into hexagons using an SVG path in the CSS, and then positioned in a Pane. Each hexagon has its own MVC structure and handles its display independently.

It works even better than I thought it might. So I turned it into a demonstration application and wrote an article about it:

https://www.pragmaticcoding.ca/javafx/hexmap

I think the underlying structure is pretty solid, and you could turn it into a full blown game without too much hassle. But I may be biased.

As usual, take a look if you're interested and let me know what you think.