Hi, I tried yur Applet in netbeans, minus the
Java Main Class code above.
And it worked fine when I compiled and executed the Applet.
I have the Applet inside the classes directory of WEB-INF, when the HTML code is in the classes directory, It doesn't seem to work by executing the HTML page first. I have the same problem with my applets.
But.. when I put my 2 files (.html and .class) into a folder inside my webhosting site, it works fine... see
here.
Did you try using just the applet code, and also including BODY tag in the HTML, it should work.