6 brought with it a much faster UI experience. Unfortunately that happened after the transition of apps from the desktop to the web. So you had slow applet downloads vs Flash on the client. You also had compatibility issues that were more involved than Flash.
Finally, other cross platform frame works like Qt came along. Now you'd get closer native appearance with languages other than Java.
As a result of the confluence of events and changes Java became relegated to server or phone side.
Not true. wxWidgets predates Java, it is cross platform and it does provide a real native appearance. Not emulation, true native widgets.
Java on the desktop failed because of .Net, because the UI widgets on Java looks horrible and nothing like the OS, and because Sun wasn't a consumer focused company and neither is Oracle.
And all it took was a little user-focus and design work. Never happened. Very shortsighted IMHO, but I also believe it was not possible at Sun or Oracle. Just not in their nature.