Java UI and applets have been abandoned long ago (>10 years). This was partly due to webapps becoming the standard, but also the realization that for desktop apps non-native UIs just suck.
The vast majority of Java (=running on the JVM) software these days is server-side, without any user interface.