An Introduction to Java applets Applets are little applications that can run in your browser to create special effects on your page. To include an applet in your web page, first find your applet. In the example above, the applet must be located in the same directory as the HTMLfile which is calling it. You may also load .class files that are in different directories than the HTML file. Some applets offer you the freedom to change certain parameters which affect the behavior of the applet.
All file names are case sensitive.
The following code will generate a clock on your Web page. It is from the Sun Microsystems Java applets resource page at the URL mentioned above. Here's the code for the above sample.