Java desktop was only ugly if you chose for it to be. It was pretty minimal effort to get native look and feel. Nothing built in electron looks native. If we're accepting custom interface using electron, that was doable with Java too.
I find them janky as hell, but their ability to wrangle code is top class.
Of course Linux doesn't have native controls - I think it uses GTK on Linux.