Applet doesn't display in browser (IE6)
Posted on 2002-07-04
I've just installed the J2SDK 1.4.0 and successfully got it to compile and run some examples from the Java tutorial, but now I want to get an applet to work.
It compiles without problem, but when I go to view it in IE6, it displays only a gray area that is the size specified in the <applet> tag. Why wouldn't it be loading?
I know Java is enabled and all because I could open up an applet from a tutorial I did like a year ago. Even when I take the exact same source code that was use for that working applet....if I compile it again in a different folder, then include that .class in an .html file, it displays nothing but a gray box.
(When I copy the .class file that works from the old folder to the new folder, and then open the .html file in the browser, it works, and then continues to work when I recompile the source code, but I think that's only because it uses the old .class file it has cached, because when I rename the class and all the filenames and try recompiling, it gives the same old gray rectangle.)
Also, I'm able to load all the applets I compile by using appletviewer, so it seems that the applet itself is okay. It must be something wrong with IE loading the applet? Has anyone had this problem before?
Oh, and I just tried it in Mozilla 1 and it works, so what's up with IE that it can't open my applets?