Hmm, UI developement it's something weird in java these days, swing it's not longer mantained and javafx it's not the replacement for swing.
So for desktop development in java we don't have a good solution :(.
But if you want to work on web side then you have a lot of options, just write your java code, expose your services in a well define Rest interface and then create web application to consume your rest api.
I think that most of the projects are developed in that way these days.