As someone who write Java code for a living, my advice is: forget applets.
They are evil, specially the non-standard, full of unpatched bugs and security holes type generated with Visual J or Visual Studio for their unholy ActiveX-based virtual machine.
Nowadays this kind of effect is quite trivial in pure HTML5 (and if I can give my personnal opinion, of questionable taste ), absolutely no need of Java applets.