Yeah, applets are dead.
For 2D, I guess there are also things like OpenFL: http://www.openfl.org/
There are several of these… the most well-known being GWT (Google Web Toolkit). It’s been around quite a while, but I’ve heard it has its fair share of issues (Disclaimer: I’ve never used it myself).
No problem, glad to help out.