r/javahelp • • Feb 12 '24

Is java fx worth learning?

Hey there, I'm an aspiring Java developer currently learning spring boot, as of now I have good command of OOPs and practice DSA in java.

I just wanted to know if learning to create GUI with java is worth it or not, because I've looked at it and doesn't really seem nice to code. . . . .

Thanks for the advice everyone.

18 Upvotes

28 comments sorted by

View all comments

15

u/_jetrun Feb 12 '24

Only if you're interested. There isn't as much need to create *native* desktop frontend UIs these days, since most products out there are web-based, or mobile-based, or if for a desktop frontend are electron apps (i.e. use a web stack).

5

u/wildjokers Feb 12 '24

There isn't as much need to create native desktop frontend UIs these days

That is odd you say that, because looking at my desktop right now I have at least a dozen desktop apps open. Most written with a rich client GUI toolkit. Of the browser tabs I have open I have YouTube open and then several tabs of read-only informational sites (mostly related to taxes since I did those over the weekend).

I think desktop GUI apps written with non-web tech are still quite common i.e. written with GUI toolkits like Qt, wxWidgets, Swing, JavaFX, and whatever GUI toolkit windows uses (WinForms?)

3

u/_jetrun Feb 12 '24 edited Feb 12 '24

That is odd you say that, because looking at my desktop right now I have at least a dozen desktop apps open ... Of the browser tabs I have open I have YouTube open and then several tabs of read-only informational sites

Don't forget about reddit. And it isn't that odd - the number of web applications you interact with (on mobile and desktop) is probably several orders of magnitude larger than the number of native desktop applications you have installed. I know you say you *only* have several tabs, but I suspect if you open up your history you'll find that you visited quite a number of unique pages in the last, say, month.

The number of mobile apps you interact with is also probably much larger than the number of desktop applications you interact with.

Put another way, the number of jobs building web (or mobile) applications, is orders of magnitude higher than building native desktop applications.

But hey, outliers exist. I was making a general statement. There isn't as much native desktop development as there was, for example, in 2002.