r/JavaFX • • Sep 18 '26

Discussion How can JavaFX attract more developers?

I wanted to know how the situation with JavaFX is. How true is it that it's multiplatform? Any features you would like to see? Does anyone know if better times are coming?

JavaFX seems like a cool project to make desktop applications, keeping in mind that I know a bit of Java and well, giving it a try wouldn't hurt

Searching for resources or applications where JavaFX is used, I saw some interviews which explain their projects using JavaFX, and I've noticed that JavaFX is very capable of doing incredible things that I had never imagined

And one way or another, I found myself leaning towards JavaFX, and the truth is I would like to know some recommendations to create desktop applications with JavaFX.

I don't know if it's fine if I start with the books The Definitive Guide to Modern Java Clients with JavaFX and Learn JavaFX 17 as a base to learn JavaFX.

I understand that JavaFX is used in internal corporate applications and that it's a great tool that works very well

At the same time, it feels strange to me, but I don't know, it generates certain doubts for me, such as architecture patterns, I don't know, but compared to the Spring framework which usually has defined structures, the documentation or ways of solving some slightly complex things. I understand that one is a big framework behind which there are many developers compared to JavaFX. I don't know, in a way I would like Gluon or Oracle to stand up and say: look, this is how things work now, this is how you work for desktop apps, this is how you work for mobile apps, this is the library you have to use or this one we've made, and so on

So far I've only made static web pages and haven't gone deeper. Plus the fact that I don't know how Angular or React work on the front end. Maybe in The Definitive Guide to Modern Java Clients with JavaFX I can resolve that doubt

And I think I'm misunderstanding JavaFX when it refers to being multiplatform. I understand that it is a very high level of complexity since each Operating System or each Desktop Environment has its own rules and ways of working, not to imagine on mobile. And my doubt is whether JavaFX fits well in the different operating systems and if applications can be reached that look native or look really pretty on an operating system

I mentioned it because, seeing if there are similar projects to make interfaces but only with Java, you have WinUI4k which is for Windows, while for Linux(GTK DE) there is Java-GI or QtJambi. I understand they are like wrappers, but Java-GI seemed very cool to me. Maybe it's my personal preference, but I like apps match the appearance of the operating system

And now that I see it beyond CRUDs, JavaFX can do more things that are probably not defined in operating systems, But the idea of making interfaces that look native to each Operating System with Java won't leave my head.

There is AtlantaFX which has themes that can go very well in different operating systems, which can be reached very nice results using CSS, and maybe that's the way in which one should develop with JavaFX.

Something that disconcerts me is that some functionality like tray applications, notifications, or other things that until now I haven't considered, are not contemplated by JavaFX, but it can be done through AWT, which the application keeps working fine. Because I feel like I'm misunderstanding JavaFX. Because the truth is it left me thinking, since only the window and its content are contemplated, I don't really know.

Anyway, I have the certainty that JavaFX will be improving over time

It's strange, but I feel uncomfortable saying it because I haven't even tried JavaFX and it seems like I'm proposing or commenting on things without knowing the great complexity it requires, or underestimating the work of the team behind JavaFX

And it's like: what more do you want people to do, this is already being done, or why don't you do it yourself, you already have AI, don't bother, this is JavaFX and if you don't like it, you are welcome to leave.

Now I feel like I got nowhere

46 Upvotes

28 comments sorted by

View all comments

4

u/grill2010 Sep 18 '26

There are workarounds available but for me personally the 2 most annoying things are that there is no native Wayland support yet and that there is no JavaFX nodes which allows it to render natively in it via Vulkan, Metal or OpenGL (similar to Surface view which we have on Android for example). Of course startup time is a big factor as well but luckily we have AOT now and of course a more easy and straight forward solution to build native executables would be nice (Exe, AppImage etc.)

1

u/Antoinedeloup 22d ago

As a complete noob... How does IntelliJ manage to be Wayland native whilst being made in Java? (Or maybe it's not, and it renders excellently on Wayland still, unlike most x11 apps)

1

u/grill2010 21d ago

It's java but the user interface is not JavaFX but Swing as far as I know. JavaFX however doesn't support native Wayland support but only XWayland

1

u/Antoinedeloup 21d ago

Iirc its Swing + their custom LaF. They've done a good job cause default Swing looks like ass both aesthetically and also text rendering on Wayland is weird. Mainly what prompted me to learn JavaFX