I am having trouble embedding my applet into a webpage. I don\'t think I\'m doing it correctly.
* I have my html file in the same directory as my .class fil
Making applets work across a wide range of browsers is surprisingly hard. The tags weren't properly standardized in the early days, so Internet Explorer and Mozilla went separate directions.
Sun developed a generic JavaScript to handle all the specific browser quirks, so that you don't have to worry about browser compatibility.
Add this to your  section:
And this to  section:
See Java™ Rich Internet Applications Deployment Advice for a detailed explanation of the script and all the possible options.