Swing / Java2D on canvas

idle Click the buttons / grab the ball — mouse is forwarded to the running app.

Real Swing, rendered client-side

A Swing app painted through Java2D by the wasm JVM's AWT peers. Frames are blitted here; pointer events are forwarded back to the app, so the widgets respond.