Some of the new LookAndFeels for Swing are really slick. Take a look, for instance, at FlatLaf: https://github.com/JFormDesigner/FlatLaf
Java gets a lot of hate but it's a language I really like. The only real issue I had with it is its memory consumption. As a developer, it still has some warts like the absence of actual generics (autoboxing is an ugly hack), but when I compare it with other languages' warts, they are usually uglier. Although my preferred usage of Java is mostly reduced to mathematical or algorithmic stuff, with little to no external libraries, and it certainly doesn't include Spring or any other annotation-heavy framework.
As a user I also definitely prefer Java to Electron and most modern frameworks. Then again I hate most modern design trends...