The technology has been around for over ten years - I believe Google Web Toolkit (GWT) was available in the mid 2000's, which also compiles Java source to Javascript.
GWT is a little different in that it didn't use HTML Canvas to render the UI, but rather the DOM.
I believe the GWT was aimed at AWT rendered on the web and I am also not sure it was "compiling" it as much as it was translating it.
The first statement is false. GWT defines it's own widgets, not AWT or Swing. The second statement is true - GWT is a transpiler. It would be very interesting if GWT could operate on bytecode but that's probably a very different project.
Don't think it was a jvm though, more like a cross-compiler.