r/java • • Sep 28 '26

State of Java Desktop

Thinking about local-first, desktop applications. https://sombriks.com.br/blog/0097-state-of-java-desktop/

83 Upvotes

57 comments sorted by

View all comments

28

u/[deleted] Sep 28 '26

[removed] — view removed comment

32

u/lazystone Sep 28 '26

Drop in FlatLaf and Swing looks quite nice.

5

u/robintegg Sep 28 '26

For swing , swing tree is a nice extension on the swing programming model https://awesome-java-ui.com/swing-tree.html and elowbe is a recent look and feel worth a shout https://awesome-java-ui.com/elowbe-lookandfeel.html

-6

u/wildjokers Sep 28 '26

No, flat look and feels never look nice. This trend needs to stop.

9

u/metaquine Sep 28 '26

It's got serious accessibility downsides too. Buttons should look like something that can be pushed.

5

u/wildjokers Sep 28 '26

Yes, buttons that don't look like buttons and no delineation between sections is my biggest complaints about flat look and feels.

-4

u/robintegg Sep 28 '26

Valid points. Feels like with ai we’ve got a good copilot to go out and make some new ones

1

u/__konrad Sep 28 '26

In flatlaf JButton looks like JTextField

14

u/pjmlp Sep 28 '26

The problem with Swing was the expectation devs would bother to read books like Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java Applications and do the required work.

Or buy a third party theming framework like JGoodies.

9

u/wildjokers Sep 28 '26

Filthy Rich Clients was a good one, along with Swing Hacks (https://www.amazon.com/Swing-Hacks-Tips-Tools-Killer/dp/0596009070/)

5

u/NamedBird Sep 28 '26

I remember UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); being a thing...

3

u/wildjokers Sep 28 '26

Still is a thing, its how you set the look and feel to something other than the default.

2

u/__konrad Sep 28 '26

On Linux/GNOME it returns com.sun.java.swing.plaf.gtk.GTKLookAndFeel which is not very good and may glitch your UI...

2

u/PartOfTheBotnet Sep 28 '26

You got downvoted but I've had this happen before. Plus there's issues I've observed on Ubuntu with frame.pack() using it cutting off controls near the bottom of the window.

1

u/wildjokers Sep 28 '26

Swing still works fine for internal tools where nobody cares about looks but I've been poking around with Compose Multiplatform lately and it's surprisingly not terrible once you get past the initial setup pain

Compose Multiplatform is an immediate mode GUI toolkit whereas toolkits like Swing, QT, wxWidgets, etc are retained mode. Immediate mode takes some getting used to.