I'd say it should be also possible using either the
Jansi, or perhaps
JCurses library.
The Jansi library seems to provide platform independent way to do manipulate console output.
JCurses would allow you to create and manage your own console (that's way different from using stdout, but perhaps it might fit your needs too).