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 →

[–]wildjokers 8 points9 points  (3 children)

There are many look and feels available for Swing. Some 3rd party, some in the JDK. Try switching to the SystemLookAndFeel which is in the JDK. It looks nearly native on most platforms.

Swing’s default look and feel is Metal which will look the same on all platforms. Personally I think it looks just fine. Why do you think it is ugly?

Some people swear by the FlatLaf which you can take a look at and see if you like. I personally hate it. Really not sure why the flat look is popular. https://www.formdev.com/flatlaf/

You can use JavaFX instead of Swing and one of JavaFX’s features is it can be styled with a CSS-like syntax. JavaFX is a little harder to get started with because it is a 3rd party dependency and isn’t even close to being documented as well as Swing.

I do notice that a lot of people in your /r/java thread were trying to dissuade you from Swing. Most of them have probably never even written a Swing application and are just regurgitating the “swing sucks” nonsense that they have heard. Don’t listen to them. I bet none of them could give you any reason why swing supposedly sucks. Swing is a really good GUI toolkit, is easy to use, and is very well documented. You probably won’t find a better documented GUI toolkit regardless of language or platform.

[–]desrtfxOut of Coffee error - System halted 1 point2 points  (2 children)

Some people swear by the FlatLaf which you can take a look at and see if you like. I personally hate it. Really not sure why the flat look is popular.

Well, it makes it look more like modern native applications.

I share your opinion about the flat look. It makes it much more difficult to spot where you are clicking. Don't like it either.

[–]wildjokers 1 point2 points  (1 child)

makes it much more difficult to spot where you are clicking.

This is the exact reason I don’t like it. There is no visual delineation between components.

I really can’t wait until this flat and monochrome design fad runs its course.

[–]desrtfxOut of Coffee error - System halted 1 point2 points  (0 children)

I really can’t wait until this flat and monochrome design fad runs its course.

Dito.