I can remember when the rhetoric against Java apps being "slow" was just as strong as it is against Electron now. And they've always been less native-feeling and clunkier than Electron.
How so? I know there are theoretical arguments and microbenchmarks that Java might be faster than JavaScript, but I've never seen an actual user-facing GUI app in Java that felt smoother to use than good Electron apps.