Hey all, I'm trying to learn how to build applets, and I simply can't get my browser to run one! Originally I was using Chrome, but I switched to Firefox and got the same error.
Here's the applet trying to load: ImageShack® - Online Photo and Video Hosting
I "click for details" and this window comes up: ImageShack® - Online Photo and Video Hosting
I click "details" and this comes up: ImageShack® - Online Photo and Video Hosting
Unfortunately, I have no idea what the problem means....
Here's my applet code and my html code:
import java.applet.*; import java.awt.*; class MyApplet extends Applet { Font bigFont; Color whiteColor; public void init() { bigFont = new Font("Arial", Font.BOLD, 16); whiteColor = Color.white; setBackground(whiteColor); } public void paint(Graphics g) { g.setFont(bigFont); g.drawString("Austin Rose", 80, 20); } public void stop() { } }
<HTML> <HEAD> <TITLE> Austin's Applet </TITLE> </HEAD> <BODY> <applet code="MyApplet.class" width="300" height="300"> </BODY> </HTML>
Any help is greatly appreciated!