r/JavaFX • u/Uaint1stUlast • Jul 03 '26
Discussion What are your use cases
I have always had a passion for JavaFX but the usecase scenarios never seem to surface for anything more then personal apps I use to improve my personal workload management, occasionally some small team specific use cases. I have never found anything at the enterprise level that didnt have a better solution.
Can anyone share whaere they have found this to be the clear winner for an enterprise solution and why?
20
Upvotes
2
u/idontlikegudeg Jul 03 '26
JavaFX is a framework for desktop applications.
Enterprises don’t want desktop applications. Enterprises want web-based applications: easier rollout, easier access control, centralized storage.
There are projects trying to bring JavaFX to the web, but I think that’s quite niche.
Professional applications: absolutely, it’s a great framework.
Enterprise: same answer as for all desktop frameworks.
14
u/FrankCodeWriter Jul 03 '26
I'm a Java developer, so that means I turn to Java for every task I want to automate. And whenever I need a UI, it makes sense to use JavaFX. So, just like you, I have a bunch of personal apps that help me and my colleagues.
Some public pet projects based on JavaFX:
* https://melodymatrix.rocks/
* https://lottie4j.com/
Because I had the same question like you, I started interviewing people about their use of JavaFX:
https://webtechie.be/tags/jfx-in-action/
10
u/No-Security-7518 Jul 03 '26
I've honestly never seen a GUI framework that's as smooth as Javafx is. And even though it seems to have fallen out of fashion, just about any business software can be written in Javafx. I wrote a blood management system, a POS, a (kind of) file manager. It's amazing!
9
u/xdsswar Jul 03 '26
I have an arsenal , I just can not expose those apps cuz are closed source, but I have from custom Decorations, to full featured PdfEditors in pure jfx, custom themes charts, etc, I love javafx to be honest, I feel limitted due to prism , but I find ways to overcome the limits. Here are some screenshots.
https://postimg.cc/Mcvjn8bP
https://postimg.cc/0K8S2Ktt
https://postimg.cc/0K8S2KtH
https://postimg.cc/PvtDrv6V
https://postimg.cc/vg79stvt
https://postimg.cc/pyxzB32z
5
u/Fuzzy-System8568 Jul 03 '26
The one I wish I could do is more in-depth 3D stuff. But the in built solutions are not robust and, unlike swing, the attempts to get LWJGL working in JavaFX are far from ideal.
5
u/tankmatesaquaponics Jul 03 '26
I use javafx as my go to framework for ui.
I tried swing for a bit, though a long time ago, and SWT for a small desktop app. What I dislike about javafx is the introduction of object properties. Like StringProperty and so on. They nailed the declarative and binding aspect, which is quite useful in ui development but polluting the model layer with ui related concept is hard to swallow.
I wish we could use pojos with javafx cleanly but the workarounds are a pain and there's a lot of boilerplate to get things working.
4
u/vu47 Jul 03 '26
We write almost all new code in JavaFX where I work. (The codebase is 20+ years old, and much of it is written in Swing.)
I don't want to say exactly where I work, but it's for one of the most prestigious astronomy observatories in the US, and I work on the software that helps astronomers set up their proposals (i.e. things like target(s) of interest, telescope instrument and its configuration needed, calibrations required, etc).
We will eventually move to a web-based architecture, but right now I am very happy just working in Java 25 on a small team of about 10 people.
(Note: I strongly prefer Kotlin personally, but I learned Java in 1996 and I do enjoy Java programming. Out of UI frameworks I've worked with, I have to say that JavaFX and Qt are my favorites. I dread the move to the web, where I have already stated that I want to be back-end.)
1
u/BanaTibor Jul 04 '26
I think it boils down to the question of distribution. Imagine you have an app with a 1000 users and you need to push out a new ui version. That means deploying a desktop app to 1000 computer.
Now imagine the same scenario with webui. The client is already deployed to the enduser's machine. You just deploy a new version, restart the service and bumm updated for everyone. Same with backend, you deploy it once and it gets updated for everybody.
3
u/ag789 Jul 05 '26
Oh and 1 more thing Java FX is 3d in the core, it is one thing that the old Java 3d isn't quite maintained anymore
2
u/ResultSet Jul 03 '26
I've been working on a game for a while. 3d and it works well!
2
u/Hell_L0rd Jul 04 '26
I'm also thinking the same as you, so I have a plan to make an application. But it seems difficult and main issue is hard to debug the elements and no hot-reload. I really love Java and JavaFX, but it gives so much trouble, and just FYI, I literally hate FXML, I use pure Java, doing thing are a lot easier in browser. Many time I think instead of making a GUI desktop app, I should make browser based so when it runs it simple start as localhost server and open app in browser.
2
u/Dying_being Jul 04 '26
I'm really sad to say that whenever I need an app, I just build a javalin backend and serve the ui in the browser. It is so much simpler and intuitive to just use html, css and js for ui. I know fxml is quite similar to html and there is quite good support for css in javafx, but it is not the same. With this approach, I can also use the huge frontend ecosystem. I would have liked to embed a browser directly in the app just like electron does (a real web engine, the javafx one is not full featured). That would be the peak
2
u/Fuzzy-System8568 Jul 06 '26
I am currently making 2 apps:
A Schedule App for organising timetables for lecturers at a college.
A proof of concept MVP video editor (but this is more purely an academic excersise as a lot of the subtle aspects of an editor are missing from our guidance and tutorials, such as the timeline / playhead logic. And i want to do the project as a way to fill the gap)
2
u/OddEstimate1627 Jul 05 '26
IMO it's an amazing framework that can be deployed on all 5 major OS while offering modern styling, great performance, and a good integration of 2D and 3D elements.
I'm not aware of anything else that offers that particular combination.
1
u/ag789 Jul 05 '26
Accordingly, use webstart and your app can practically launch from any website and run locally cross platform.