I'd like to say that i'm new to Java, so any help is greatly appreciated! So I've created the following code, it's nothing important just something simple:
package helloWorldApPlet;
import java.applet.Applet;
import java.awt.Graphics;
public class HelloWorld extends Applet {
public void paint(Graphics g) {
g.drawString("Hello world!", 50, 25);
}
}
And i've also created the HTML file in the same folder:
<HTML>
<HEAD>
<TITLE> A Simple Program </TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>
</HTML>
When I run it from the bin folder, the "Here is the output of my program" is displayed, but the applet is blocked by Java security. Adding it to the exceptions list in the Java Security panel doesnt do anything.
Thanks, Sam