Sunday, 4 January 2015

First applet program

/*java code */


import java.applet.*;
import java.awt.*;

public class temp extends Applet{
   public void paint(Graphics g){
      g.drawString("my first applet program",80,20);
   }
}


/*html code*/

/*
<HTML>
<HEAD>
</HEAD>
<BODY>
<APPLET CODE="temp.class" WIDTH="800" HEIGHT="500">
</APPLET>
</BODY>
</HTML>

*/

No comments: