r/JavaFX • u/whatacold • Mar 25 '26
Help How well does your JavaFX app work across different OSes?
I’m developing a screenshot app on Linux using JavaFX, well, not directly, but with Clojure’s cljfx.
Initially, I thought it should work effortlessly on Windows and macOS. But with a quick try, I found it broke at many places.
So I’m curious how well yours works? If so, what strategies have you applied? Thanks.
7
Upvotes
5
u/PartOfTheBotnet Mar 25 '26
The main issue with Linux is that is an incredibly diverse ecosystem. You cannot simply make a one-size fits all solution.
Consider the number of different desktop environments for starters. Gnome, KDE, Cinnamon, XFCE, etc.
What about the window system? Are you using X11? Wayland?
Windows and Mac don't have these diversity problems, so its easier to create a test suite with guaranteed coverage / regression handling. Additionally, what do the developers contributing to JavaFX use? Are these issues easy to reproduce in a VM? There are a plethora of reasons why on Linux specifically you're going to run into problems on basically any UI framework that tries to generalize. Even Swing has its fair share of oddities. Try using the "system" look and feel on different distros, some of the results are wacky.
1
u/iamwisespirit Mar 25 '26
There are some places where you should write platform dependent code
1
u/dhlowrents Mar 25 '26
I've been working on a game for a while and I don't see many issues with Windows and macOS. Where does it break for you? I haven't tried Linux yet.
1
u/fakeacclul Mar 25 '26
Sort of related, but I’ve recently been getting super jittery animations because of vsync issues on mac and seems like it’s been an issue forever in JavaFX, makes me not trust it much but maybe others have better experiences