Is Java really faster than Electron? I wouldn’t have guessed that, but if it’s true: Hey, cool!
Java can be very fast indeed. It gets a bad press because many programs coded in it can be quite heavy and bloated.
TBH I think this is the first time I’ve seen a TUI done in Java. (There might be more examples out there but I can’t come to think of any right now at least.)
A couple of TUI libraries for Java:
http://www.pitman.co.za/projects/charva/Screenshots.html
https://github.com/mabe02/lanterna
And, lower level, there's jCurses, which despite the name, also works on Windows: