You don't need to create an applet and sign it! It's possible to use java from javascript.
I made a script for doing a traceroute with ActiveX or Java.
I don't see any security warnings on OS X. Try it on Windows and Linux and tell me what happens :-)