r/java • • Nov 01 '20

JavaFX and Java – Eden Coding

https://edencoding.com/
39 Upvotes

17 comments sorted by

View all comments

Show parent comments

9

u/marvk Nov 01 '20

What do you mean Java needs to choose?

Swing will stay available for backwards compatibility, but as far as I know there is no major ongoing efforts being put into Swing.

JavaFX on the other hand is being actively developed, but has always felt incomplete to me. I've used it for a multitude of projects and there are always roadblocks with bad documentation (especially for styling), incomplete APIs (like table column auto widths) and such. As much as I hate to admit it, I very much understand the appeal of Electron. Especially with a framework like Vue, UI development in the web is a breeze compared to JavaFX.

6

u/wildjokers Nov 01 '20

Then use Swing which is complete, very mature, and has great documentation.

-1

u/marvk Nov 01 '20

Sadly, it's not event driven, which makes it kind of a pain to create complex UIs. Have you used libraries like RxSwing? Can you recommend anything else that makes swing feel not as archaic?

5

u/wildjokers Nov 02 '20

Sadly, it's not event driven

What do you mean? Swing is absolutely event driven. Not sure how a GUI toolkit could even work without being event-driven. Event handling in Swing and JavaFX work the same way.

Swing doesn't feel archaic to me so I am not sure exactly what you are looking for.