r/learnjava • • Jun 13 '22

Java User Interface Frameworks

At my university, we have worked with JavaFX which is quite dated as a UI framework for Java, but somehow manages to still be good enough for the simple applications we’ve been building.

I wanna however, move to a more viable framework, but I have no idea what I could use to build a UI in Java other than Swing (which tbh, is no different from JavaFX).

What frameworks are out there that I could use to build a UI? Are there any good resources you know? Any tip is appreciated

0 Upvotes

13 comments sorted by

View all comments

Show parent comments

-5

u/Ieris19 Jun 13 '22

Yes, however, CSS is not vanilla CSS, it’s FXCSS I think they call it, it’s just a fancy name for changing some aesthetic properties of the components. So that’s a whole other framework to learn that while powerful, it’s not quite as easy.

And sure, web-views in JFX support many other things, but it’s again, nothing other than vanilla websites unless you’re using yet another framework on top.

Finally, JFX on its own has several flaws like not supporting Z-index (or I haven’t figured out how). So while I don’t doubt it’s up to date, and that it can become quite powerful. Without other frameworks it’s quite limited.

It’s also been around for a LONG time so obviously it must be robust. I’m not saying it’s worthless, just dated (just like Java to be fair)

3

u/Just_Another_Scott Jun 13 '22

Yes, however, CSS is not vanilla CSS, it’s FXCSS. I think they call it, it’s just a fancy name for changing some aesthetic properties of the components.

No it's normal css. You just use -fx classes. That's all CSS is. Setting aesthetic properties.

Finally, JFX on its own has several flaws like not supporting Z-index (or I haven’t figured out how). So while I don’t doubt it’s up to date, and that it can become quite powerful. Without other frameworks it’s quite limited.

Anything you can do in another UI framework you can do in JavaFX. It seems to me you are very inexperienced.

It’s also been around for a LONG time so obviously it must be robust. I’m not saying it’s worthless, just dated (just like Java to be fair)

Java nor JavaFX are dated. If you don't like Java then you are more than welcome to not use either. Java and JavaFX are both regularly being updated and improved.

-4

u/Ieris19 Jun 13 '22

Although I am quite inexperienced with UI, and I will have to agree I do not know much, I would then like to know how to use Z index on JFX if you happen to know, as I haven’t found much

And as for the being dated, that’s just a fact. No matter how many updates it gets, no matter the improvements, it’s a child of a different paradigm and as such, it’s quite out of sync with most other more modern alternatives. It doesn’t make it any worse or less powerful, just that it’s focus is quite different from more recent languages and frameworks