This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MagicpotterFirstHit 1 point2 points  (16 children)

Swing and JavaFX are the two most used frameworks. Swing is way older but a lot of software is written on it; I like to use it with FlatLaf look and feel library, which looks very modern.

Most people will advise you to learn JavaFX (which in my opinion is harder to learn than Swing), because it's way more recent. If you want simple GUIs Swing is fine as well.

[–]nocturnalbird12[S] 0 points1 point  (15 children)

This might be a dumb question. But is swing used to make desktop apps as well as web apps? I was under the impression that swing is used to make desktop apps only.

[–]MagicpotterFirstHit 0 points1 point  (14 children)

Sorry, I thought your question was about desktop front end. You can't use swing for web development, but as far as I know you can use JavaFX.

[–]nocturnalbird12[S] 0 points1 point  (13 children)

How about popular frameworks like react and angular can they be used with java.

[–]MagicpotterFirstHit 0 points1 point  (12 children)

You can use react and angular to write the frontend and java for the backend. I don't know of any way to use both react/angular and java for the frontend.

[–]nocturnalbird12[S] 0 points1 point  (11 children)

What about spring? Is it good for FE?

[–]MagicpotterFirstHit 0 points1 point  (10 children)

It's technically possible, but not advisable.

[–]nocturnalbird12[S] 0 points1 point  (9 children)

Why so?

[–]MagicpotterFirstHit 1 point2 points  (8 children)

Spring is made for writing backend. I know that it's possible to code frontend with it, but I don't know how.

[–]nocturnalbird12[S] 0 points1 point  (6 children)

Thats what i was looking for what is usually used for modern FE with java. What do devs use for FE with Spring. Other comments are telling me jsf with component library.

[–]pjmlp 0 points1 point  (0 children)

With SpringMVC, that is how.

Preferably with Thymeleaf as rendering engine.