import java.applet.*; import java.awt.*; public class HelloWorld extends Applet { public void paint(Graphics test) { test.drawString("Hello graphic",25,50); } } <HTML> <HEAD> <TITLE>Hello World </TITLE> </HEAD> <BODY> <applet codebase="." code="HelloWorld.class" width=170 height=150> alt="Waring Message." </applet> </BODY> </HTML>
import java.applet.*; import java.awt.*; public class HelloWorld extends Applet { public void paint(Graphics test) { test.drawString("Hello graphic",25,50); } }
<HTML> <HEAD> <TITLE>Hello World </TITLE> </HEAD> <BODY> <applet codebase="." code="HelloWorld.class" width=170 height=150> alt="Waring Message." </applet> </BODY> </HTML>