You will have a tough time developing cross platform UI stuff with Java its primary focus is services on the backend (though we can all pray that good languages like Rust, Go, NodeJS, and Python will take over that area in time). Java is famous for having pitifully slow and memory hungry UI frameworks, there was a IntelliJ competitor using one (think Eclipse but not sure) and it lost the battle because of how poorly performing it was. If you're only supporting OSX/IOS there are very nice options like SwiftUI, otherwise it's the dark world of C++.
However if you prefer Angular 11 over other frameworks then you might like Java since it was architected by Java folks hence why most people don't like or use it ;)