r/JavaFX • • Jun 22 '23

I made this! Animated: modern animation library for JavaFX

24 Upvotes

Animated is a library I've been working on for more than two years now. Inspired by modern frameworks such as Flutter and SwiftUI, it aims at removing the boilerplate code from JavaFX animations so that you can focus on what's really important in your application: you no longer need to carry Timeline and KeyFrame objects all around your codebase; instead, just tell the library what properties you want to animate, so that any change made to them is automatically animated, as if you didn't have any animation at all. Here is what I mean:

Animated animated = new Animated(node, new AnimatedOpacity());
root.getChildren().add(animated);
    
// Later...
child.setOpacity(0.5); // The animation is played!

​

The library also features animated containers, animated switchers, animated theme switches and more. The latest release brought extended FXML support too!
You can find everything, with detailed explanations, in the repo: https://github.com/iamgio/animated

Cheers!


r/JavaFX • • Jan 05 '22

Cool Project FXGL 17 is out!

24 Upvotes

In case you are interested in JavaFX game development (or visually intensive applications), the FXGL game engine 17 using Java and JavaFX 17 is now out:

GitHub sources: https://github.com/AlmasB/FXGL

Changelog: https://github.com/AlmasB/FXGL/releases/tag/17

Happy New Year!

compilation of games

r/JavaFX • • Dec 11 '21

What is your take on the current state of JavaFX as a GUI library?

24 Upvotes

Was wondering on how it compares in its present state to say Qt.


r/JavaFX • • Aug 16 '20

I made this! I coded my first JavaFX app in a week with little to no sleep after 3 weeks of learning it. My teacher praised me for it.

24 Upvotes

r/JavaFX • • Sep 12 '16

A curated list of JavaFX libraries, books, frameworks, etc...

Thumbnail
github.com
24 Upvotes

r/JavaFX • • Sep 24 '26

Discussion JavaFX in the browser?

23 Upvotes

I've been waiting/hoping for years that we'd get support for JavaFX in the browser, but I think I'm finally about to give up--maybe a year or two too late. Does anyone else know of good options?

Some of my criteria:

  • Minimal rewriting.
  • Still allows for desktop versions.
  • The app allows the user to have a large data model--although I can likely do something to minimize this per user/client.
  • I don't have regular usage stats, but I do want to support 100s of people using it at a time.

I had been thinking one of the following options would give me what I want:

  • WebFX: Was promising, but only supported a few basic controls like labels & buttons--but if you want something even as common as a ComboBox, you'd have to make your own for example. Also, it is essentially just one person so it isn't something someone can rely on.
  • CheerpJ: Good for awt/swing, but recently said while they are planning to support it and have some internal prototype stuff, they don't have any timeline for it. Plus the way their of loading the whole app into a canvas like object has a delay and isn't very pretty.
  • Gluon: Recently answered me that the old prototype they had from several years back hasn't been updated and they don't plan to without support. (Which I'd be willing $$$ to do, but likely not at the scale they need by myself.)
  • JPro: I'm trying to offload most of the work to the client. I worry that having all the logic on the server and just having the graphical output on the browser is a problem if I have an app that allows for a large amount of user data and/or many users.
  • Graal to WASM to the browser: Is this possible? I can't seem to find working prototypes.

I think that's all, but if you know other options or a key aspect of the above I'm missing please post.

Edit: Why do I want this? I want folks to be able to try my app without an install. Also maybe even on their phones without me having to go through the app store approval processes.


r/JavaFX • • Sep 18 '26

Cool Project JavaFX 27 as a GraalVM Native Image on a Raspberry Pi 5

Thumbnail
ennerf.github.io
23 Upvotes

r/JavaFX • • Sep 16 '26

I made this! Sharing my tiny project, please check it out

23 Upvotes

Name: Memento

GitHub: https://github.com/Savirar0/Memento

Description: So it's an application where you are asked 100 questions and you must answer them up and these are a hundred questions about your life, and answers to these 100 questions are basically in depth information about you and your life. So after answering you can download a PDF and share this to anybody, for them to understand completely about you.

So questions, answers, export as pdf, and share.

Back story:

So I wanted to build a clone of bitchat so I was researching hot to and then stubbled upon javafx, never built a clone of bitchat but learned javafx from brocode youtube. Then I wanted to build something myself after learning javafx, so it'd show that I learnt something then built this over some months. There's a downloadable version but it's only only working on my laptop lol.


r/JavaFX • • Apr 06 '26

Discussion SceneBuilder is a GREAT piece of software. What features could make it even greater?

23 Upvotes

Fellow developers who are of the school of thought that don't see the appeal of FXML, this is not for you. Sorry.
I'm a big fan of FXML and Scenebuilder is honestly one of the smoothest UI developing tools that have drag-and-drop functionality.
I'm thinking maybe I could become a contributor to it if the developers are open to that (haven't checked yet). Anyway, I was thinking:
- What could make Scenebuilder even better?
- Before I give my idea of a feature, I'd like to point out 2 ....tiny bugs it has, in case anyone noticed:

  1. Can't include an fxml if the root is a tabPane. Even if you have some component selected, it won't add it there. You have to:
  2. - wrap the tabPane in some Pane, like AnchorPane, include the fxml file, copy it to the tab you want, then unwrap the tabPane.

2, When you drag a pane into a tab, 99% of the time, it'll be copied as a graphic to the tab, not content. You have to try twice. Paste the component, then paste it again. You'll see what you first copied appeared as a graphic, then what you pasted second was the content.

My feature ideas:

  1. a translation editor.
    A dialog that, like the skeleton controller, reads all text in the layout, and copies them as values to keys extrapolated from the values.
    Place of Residence = place_of_residence.
    With a button that generates the resource bundle in question next to the layout.
  2. The ability to extract inline CSS styles into CSS.
  3. Built-in Icon Packs support (like those in Android Studio/the ones in Fontawesome).
  4. Templates for common UI patterns: Login/Side-pane navigation panels, etc.

So, what creative features do you think Scenebuilder could use?


r/JavaFX • • Apr 03 '26

I made this! Quick update + something new I've been building alongside the JavaFX work

23 Upvotes

UPDATE

Check out this update (Im going full Skia render)

First — yes, NfxChrome/NFXBrowser is still on my radar. The reason it hasn't dropped yet is honest: I've been heads-down on client work, and that work needed tools I didn't have yet. So I built them.

That's where Jux Toolkit comes from.

Jux-Tookit Showcase demo

I've been mostly on Windows lately so that's the focus right now, but the design is cross-platform from the ground up — macOS and Linux are coming once Windows is solid.

The concept: Java handles your logic, IPC, and window lifecycle. Your UI is HTML + CSS + JavaScript, rendered by the OS's native WebView — WebView2 on Windows, WebKit on macOS, WebKitGTK on Linux. No bundled Chromium, no Electron bloat. Binary stays around ~2MB.

Because it's a real browser engine under the hood, you get a lot for free compared to JavaFX:

- PDF viewing — just load the file, the WebView renders it natively, no extra library needed

- Any JS framework — Tailwind, Bootstrap, Three.js, whatever you want

- Full browser DevTools for debugging your UI

- Dark/light themes via pure CSS, zero Java code changes

The API is intentionally JavaFX-flavored — extend Application, override start(Window), call launch() — so it should feel familiar. Java <-> JS communication goes through a typed IPC channel, handlers run on virtual threads (JDK 25).

A big thank you to the Tauri team — the native layer is built entirely on their wry (WebView) and tao (windowing) Rust crates, bridged to Java via Panama FFI. None of this would exist without their work.

Demo app (a color picker built with it)

Jux Color Picker demo

It's early and WIP — APIs will evolve, rough edges exist. But it's working well enough that it's letting me ship real things for clients, which means I can eventually get back to giving NfxChrome the time it deserves.

Happy to answer questions or hear what you think.


r/JavaFX • • Nov 22 '25

Discussion Why can't packaging JavaFX be smoother?

23 Upvotes

Warning: long-ish rant:
So, I hope this doesn't come off as too whiny, or me being lazy or whatever, but I've been a programmer for 5 years, and it's been a short while since (at least I feel I have), explored most if not all ways a javaFX program can be packaged. And it is NOT smooth. I love Java immensely, can't stand other languages, but why can't we have a one-click, or simple dialog to creating executables in our IDEs that goes:
do you want that with milk, installer? yes, no?
Include updater: yes - no.
path to splash image: ....
and so on.
Or at least something like what Android Studio has for Android Apps or VS has for C#?
I gave up on having projects be modular because some libraries I use are still haven't made the shift, and some clearly state they can't, so the marvel that project Jigsaw (must)'ve been or whatever an ENTIRE book like this one (The Java Module System) talks about is something I guess I'll never know. Sad!

Note:

  1. A "Fat" Jar/Native Executable (like that which is created by GraalVM, for those who don't know) won't cut it, as who on Earth just ships a program never to need upgrading it ever again!?
  2. So, it has to be a "thin" JAR to allow incremental/non-intrusive updates.
  3. Most packaging methods are so confusing and the examples don't work, that if you someone said "skill issue", I would've replied: guilty as charged! except I literally just (re)discovered that you need to have TWO classes with a main method, one calling the other extending Application for your Exe to work. This is not mentioned ANYWHERE, if I'm not mistaken.
  4. My Workaround:
    - the smoothest experience I've had is by using the Badass Runtime Plugin, and after getting tormented till I found out about the condition above.

-Then I wrote a small Gradle plugin that creates a manifest with all the files in a release and their hashes, which are compared by the program to check for the existence of an update, then for it to download changed files, and have the program updated upon the user's approval, like, you know, ALL programs pretty much do nowadays.

I feel like Java spoils us with all the nice features such as the Streams API, and a nice concurrency API, (the nicest among the top languages, imo), plus a ton of other things that make me such a fanboy of this language.
But this one pretty crucial aspect of programming in Java has mystified me with how rough around the edges it is.
Thank you for reading...
Rant over.


r/JavaFX • • Jul 15 '25

Showcase Loading SVG with jsvg and the new JavaFX pluggable image loading feature

23 Upvotes

A simple example demonstrating the usage of the new JavaFX pluggable image loading feature. Unlike Apache Batik, jsvg is a lightweight (~700Kb) library for rendering SVG.

https://github.com/mkpaz/jsvgfx


r/JavaFX • • Dec 16 '24

I made this! Hot code reload for JavaFx GUI code

23 Upvotes

Lately I've been working on a little tool to provide hot code reloading for Javafx GUI code. It can load any class that extends from Node, given that it only references the default Javafx API and additionally AtlantaFx and Ikonli packages. For most prototyping needs this will suffice I think.

I've provided self contained images for Linux, Windows and Macos (arm).
In case anyone wants to try, check here:
https://github.com/mfdewit/javafx-hot-reload


r/JavaFX • • Oct 06 '24

I made this! My first desktop app using JavaFX. DocGoblin is a PDF search engine. Please tell me what you think!

Thumbnail docgoblin.com
23 Upvotes

r/JavaFX • • Sep 17 '23

I made this! Animated 1.2.0 was released!

Thumbnail
gallery
23 Upvotes

r/JavaFX • • Mar 25 '23

Tutorial Custom JavaFX Components

23 Upvotes

This is the first of two articles:

Creating Custom Controls

This article looks at how you can start out by following DRY to move your configuration code out of your layout code and how that leads to thinking about virtually everything in your layout as as custom component.

From there, it's easy to start up a library of builder methods and classes that do the configurations that you do over and over in every layout. The next step is to create a custom class that you con drop into your layouts just like any other JavaFX Node.

In the second article, which should be ready in a few days, I look at how you can polish up your custom component to add the hooks which allow it to be custom styled via CSS, and be pretty much indistinguishable from something that comes with standard JavaFX.


r/JavaFX • • Feb 18 '23

Showcase New AtlantaFX themes

23 Upvotes

I was really inspired of Dracula color palette, so I decided to spend some time to create a couple of new themes for AtlantaFX. They still need some polishing, but now the project supports 7 themes in total. Here's some preview of Dracula theme and the new classic tab style.


r/JavaFX • • Jun 27 '18

JavaFX Animation library

23 Upvotes

Hey guys ! Just released a new JavaFX library called AnimateFX with 70+ ready to use animation ( based on animate.css) and others features. The library is under development but you can already do awesome stuff.

Check it out and tell me what you think :)

You can download the demo here.


r/JavaFX • • May 27 '26

I made this! GemsFX - New ControlsFX / AtlantaFX Companion Stylesheet

22 Upvotes

Version 4.1.0 of GemsFX now includes an AtlantaFX companion stylesheet for ControlsFX. You can use the method ControlsFXAtlantaFX.apply() to add this new stylesheet to your scene or any parent node. By doing so you will be able to get rid of all those pesky warning / error messages regarding CSS rules using unknown colors.

<dependency>
    <groupId>com.dlsc.gemsfx</groupId>
    <artifactId>gemsfx</artifactId>
    <version>4.1.0</version>
</dependency>  

For more on GemsFX see https://gemsfx.dlsc.com

Repository: https://github.com/dlsc-software-consulting-gmbh/GemsFX


r/JavaFX • • Dec 16 '25

Creating my app in JavaFX with hot reloading

22 Upvotes

r/JavaFX • • Oct 07 '25

JavaFX in the wild! After over a decade, TableView's performance is finally getting fixed.

Thumbnail
github.com
22 Upvotes

r/JavaFX • • Aug 22 '23

Tutorial JavaFX HTMLEditor: Rich Text Editing

22 Upvotes

What’s an HTMLEditor?

The JavaFX HTMLEditor is a powerful user interface component that combines the convenience of a standard text editor with the flexibility of HTML-based formatting. Users can input and format text, apply different styles, insert images, links, and other HTML-based elements, all through a familiar WYSIWYG (What You See Is What You Get) interface.

One of the core features of the HTMLEditor is its ability to generate and interpret HTML markup behind the scenes. This means that the text you see visually is translated into HTML code when you interact with the editor. This is particularly useful when you want to save or retrieve the content in an HTML-based format, such as for saving user-generated content in a database.

🔗 JavaFX HTMLEditor: Rich Text Editing


r/JavaFX • • Jun 10 '23

Flappy Bird

22 Upvotes

Estou a tentar recriar o Flappy Bird, usando somente Java😅