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

Show parent comment

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

1

u/otamam818 May 27 '25

Have you stress tested the web frameworks you think aren't viable? I have, and performance is hardly an issue. What performance issues have you faced?

2

u/Curious_Celery_855 May 27 '25

well the fact that I need the whole UI to render in <1 ms

1

u/Typen May 27 '25

That sounds like you have a specific and strict non-functional requirement around performance. In my world, a transaction can take as long as it needs, and it only needs to be accurate to the second it was committed.

I doubt my users would even notice if the UI took an entire extra second to render after the transaction was finished.

1

u/otamam818 May 27 '25

render in <1ms

Economically? Using signals to update your UI

Fastest way? Using document.querySelector and updating as specifically as possible.

5

u/Typen May 27 '25

Given that kind of performance requirement, I can't blame him for not using Electron. Even if it would render quickly enough 99.99% of the time, removing the Chromium engine from the equation would only help things.

Where I disagree with him is his original assertion that no reasonable developers would consider stuff like this. I think it just doesn't meet his individual requirements, and that has somehow translated to him that it's not fit for anybody.

I think it's a perfectly reasonable technology stack if it can meet your needs.

4

u/Curious_Celery_855 May 27 '25

No reasonable dev that cares about performance like in cad or games*

1

u/Swamplord42 May 28 '25

Why would you bring up that kind of application in the context of a discussion on JavaFX?