How would you do graphics in Java in a truly portable way? There's Swing but it's terrible and isn't available in every JVM implementation (Android and J2ME don't have it). Then anything that uses hardware-accelerated rendering (OpenGL, Vulkan, Metal) would require native libraries thus nullifying any remaining portability.