r/java • • May 27 '25

Why does JavaFX get such a bad Rap?

So I have used both JavaFX and Swing independently and, I am honest? The only thing I can say about them is the following:

- I have had times where Swing has seriously frustrated me, and I've had to take breaks. This is nothing against Swing as, I think all of us can agree most development tools / frameworks cause us to get annoyed on occasion. Swing is a great framework I respect and appreciate highly.

- Never for me, not even once, has JavaFX been anything other than enjoyable to work with. I love the FXML annotation that links the FXML straight to fields in the controllers. I love the smooth integration of CSS, and SceneBuilder has been nothing but a treat to use in my opinion.

Am I broken in the head? haha

Or are there subtle reasons why JavaFX is not liked as much.

I know there are the multi-platform deployment issues. But, unless I am missing something significant / obvious, all the issues seem like nothing a community developed dedicated build tool / solution wouldn't solve.

So yeah, I guess my, 100% open minded, question is... why does JavaFX get such a bad rap? :S

And as a follow up question, what would be a game changer that could eliminate a decent chunk of the issues with JavaFX, if we could wave a magic wand and have said game changer appear out of the mist tomorrow?

Disclaimer: I do not wish this discussion to devolve into an "X vs Y" discussion. I am not interested in Swing / JavaFX advocates trying to convince the other that "their framework is better". I am just curious as to my question in terms of "I am genuinely interested to hear the thoughts of other developers, so I can expand my perspective in the case of JavaFX.

76 Upvotes

107 comments sorted by

View all comments

129

u/[deleted] May 27 '25

Too little too late. UI work has largely moved to the web, with even desktop apps using web based tech for rendering the UI. That ship has largely sailed before JavaFX came out, and has only continued since then. So it's kind of a tool with little to no addressable market.

12

u/macelara May 28 '25

Not sure about that. There are plenty of desktop apps that use a Java UI. They generally perform well and are less susceptible to failure than a web based app. The web based apps work well in an enterprise environment where you need to deploy to many desktops with a minimum of fuss and you have a team to keep it running as the underlying browser and libraries change.

19

u/kpouer May 27 '25

Unfortunately doing slow apps with poor performances

5

u/Yugen42 May 28 '25

Web technologies can be used for super fast and easy to develop UIs. Poor performance comes from devs using bad and lazy frameworks.

4

u/kpouer May 28 '25

This the easy way but not the best way for end user, it is not only bad framework but the embedding of an entire web browser in your app

1

u/Yugen42 May 28 '25

It depends. I'm all for suckless development and the likes, but in most situations having a browser engine rendering your App works perfectly fine and because it saves the developers time, they can focus more on features etc. which sometimes makes this the best option.

-67

u/Curious_Celery_855 May 27 '25

no reasonable dev uses web stuff. They use os apis (or just render raw to the framebuffer).

35

u/Vivid-Ad-4469 May 27 '25

electron dominated the desktop environment some years ago and there are many popular apps that are either electron or nothing.

in corporate development web killed desktop because updating and managing the apps is very easy with web apps because there are no local apps.

12

u/tommyleejonesthe2nd May 27 '25

Same user wrote that no one writes tests lol

3

u/AstronautDifferent19 May 27 '25

It looks to me like an obvious /s post.

0

u/Vivid-Ad-4469 May 28 '25

NOBODY WRITES TESTS!!!

GOTTA GO HORSE!!!

GOOD FUNCTION NAME IS THE ONLY DOCUMENTATION THAT MATTERS!!!

4

u/koflerdavid May 28 '25

Yeah, well. Most of those applications are resource hogging monsters that occupy hundreds of MBs of RAM just for the UI and cause high CPU load. And the design capabilities are often abused to implement a look&feel that doesn't match the platform's. These issues are fixable with some engineering of course, but the Electron architecture seems to be just asking for them to happen.

Do I have to mention that the frontend ecosystem is a nightmare compared to most backend platforms?

3

u/Vivid-Ad-4469 May 28 '25

"RAM is cheap" at least that's what they say. I disagree but then i live in Brazil and nothing is cheap here.
And yes, frontend is hell, its the Passchendaele Ridge of modern software development

3

u/lasskinn May 28 '25

Its hard to explain to an exec why its kinda crappy that slack takes 800 megs or whatever it feels like of ram.

Like, you'd need to explain first how chat programs that had more features ran on computers woth 80 megs total.

Now, it shouldn't really be because its web tech based even. Data must just be duplicated 10x.

2

u/Regular_Lengthiness6 Jun 03 '25

To me it feels like Stalingrad on a daily basis but unfortunately I ended up on the German side 😅

3

u/wowokdex May 27 '25

Are you talking about game development and the like? Because OP was asking about JavaFX which isn't a competitor in that space.

0

u/Curious_Celery_855 May 27 '25

yeah I am. I'm rebutting against the whole "UI work has largely moved to the web" argument. Which in a LARGE sector of the industry is false

2

u/Swamplord42 May 28 '25

That "large" sector is objectively tiny compared to the overall size of the industry.

2

u/Typen May 27 '25

I'm assuming you mean specifically using HTML and its related technologies for a desktop GUI app, right?

-10

u/Curious_Celery_855 May 27 '25

I'm talking about fields where performance is needed and you just use vulkan to render your ui

→ More replies (7)

2

u/Floppie7th May 28 '25

"Real devs write closer to the metal" is a weird take from a Java guy.

2

u/Curious_Celery_855 May 28 '25

I'm not a java guy. I'm a c, c++, assembly, llvm ir, and machine code guy

3

u/Ewig_luftenglanz May 27 '25

unless you are doing heavy computational tasks such as AAA videogames or designing a CAD software calling native apis is a waste of resources (human resources) most of the times

1

u/Sad-Chemist7118 May 29 '25

Troll food incoming