Ugh, I'd rather have the electron app. I've never seen a Java application that didn't garishly stand out, the widgets do not act at all native, and it's inevitably sluggish. Although, the biggest offenders I've used are Eclipse and IntelliJ IDEA, both of which at least have some excuse. I hate using both, though, and VS Code, which I believe is Electron-based, does not feel sluggish the way the other two do.
It takes a bit of care for java apps to look native. Though no electron apps look native, and they all look pretty garish to me. IDEA can be pretty snappy and the Jetbrains team is pretty good at fixing performance problems.