Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  HelloWorld.java
Language: JAVA
Code:
     import java.applet.Applet;
import java.awt.Graphics;
public class HelloWorld extends Applet
{
    public void init()
    {
        System.out.println("applet started");
    
    }
   public void start()
   { 
       System.out.println("applet activated");
   }
   public void paint(Graphics g)
   {
       System.out.println("applet running");
       g.drawRect(10,10,50,100);
   }
   public void stop()
   {
       System.out.println("applet terminated");
   }
   public void destroy()
   { System.out.println("applet destroyed");
   }
}
/*<applet code="HelloWorld.class" width="250" height="125">
</applet>*/
Comments: