Back to Applets page
Click in the boxes below, select all and copy to grab the applet
HTML listing:
<HTML> <HEAD> <TITLE>My First Applet</TITLE> </HEAD> <BODY BGCOLOR=WHITE> <APPLET CODEBASE="Classes" CODE="HelloWorld.class" WIDTH=400 HEIGHT=50> </APPLET> </BODY> </HTML>
Applet listing:
public class HelloWorld extends java.applet.Applet { public void paint(java.awt.Graphics g) { g.drawString("Hello, world!", 100 , 25); } }