1. The basics of Java Applet
1.JavaApplet is a small application written in Java language , which can be directly embedded in web pages and can produce special effects. Web pages that contain applets are called Java-powered pages, which can be called Java-powered pages.
When the user visits such a web page, the Applet is downloaded to the user's computer for execution, but only if the user is using a web browser that supports Java. Since the Applet is executed on the user's computer, its execution speed is not limited by the network bandwidth or Modem access speed. Users can better appreciate the multimedia effects produced by Applets on web pages.
In Java Applet, functions such as graphic drawing, font and color control, animation and sound insertion, human-computer interaction and network communication can be realized.
Each Applet is a subclass of the java.applet.Applet class. The base Applet class provides methods for derived classes to call to obtain browser context information and services.
Applet is a Java program, which generally runs in a Web browser that supports Java. Because it has full Java API support, Applet is a full-featured Java application.
The <applet> tag is the basis for embedding Applets in HTML files.
The following is an example of calling the "Hello World" applet;
html code: