You should name the file with your applet name, HelloWorldApplet.java, run the javac compiler getting a JavaVM bytecode file HelloWorldApplet.class which you put in a web directory |
<html><head> |
<title> Simple Hello World Page </title> |
</head> |
<body> |
My Java Applet says! |
<applet code="HelloWorldApplet.class" width=150 |
height=25 > |
</body> </html> |
Name of your applet class |
Browser uses a rectangle of width 150 pixels |
and height 25 pixels to display the applet |