Jan 10, 2021
I would recommend to not use anything Java related to handle the client side, the GUI.
Basically split client and server side.
In one of my project, for example, we have developed an API with Java and are developing the client with JavaScript (React more precisely).
Of course, that's an opinionated answer and, therefore totally challengeable.