When using Java, you have the option of creating two types of programs: applets or applications. Applets are graphical programs that run within a web page. Applications can be graphical or command line and run on their own.
One of the biggest differences between applets and applications is in security. Because an applet is web based and could run on a computer without the user being aware of it, applets have very strict security restrictions. Applications are usually installed with the knowledge of the user so are considered more secure.
To add in an applet, you need to edit the HTML code for a webpage. If you are using FrontPage, all you need to do is import the .class file and any related files into your web, then from the menus choose Insert > Web Component > Advanced Controls > Java Applet
Type in the name of the class file, and choose any other options you want.
Otherwise if using raw HTML here is the code you will need:
<applet width="xxx" height="xxx" code="Xxxxxx.class">
</applet>
You need to put in the width and height of your applet and the name of the class file, which should be stored in your web.
Here are two sample applets that are included in the JDK. You will find them in the demo\applets folder.
| Click to play Tic Tac Toe |

