Demonstration of Simple Java Applet

This document contains a Java applet. A Java applet is introduced into an HTML document using the applet tag. Only some broswers have implemented the capability of requesting the Java byte-code named in the applet and executing the instructions.

The following applet construct appears between the horizontal lines below:

<applet CODE="HelloApplet.class" width=150 height=30>
</applet>


The source for the applet is in the file HelloApplet.java.

Swing Applet



The source for the applet is in the file HelloJApplet.java.

Parameters

Applets can be paramterized so that the same applet can do different things in different places.
<applet CODE="Text.class" width=150 height=30>
</applet>
<applet CODE="Text.class" width=150 height=30>
  <param name="text" value="Hallo Welt!">
</applet>
<applet CODE="Text.class" width=150 height=30>
  <param name="text" value="¡Hola mundo!">
</applet>


The source for the applet is in the file Text.java.


Ask for Java plug-in in a way that works in Netscape.

No JDK 1.2 support for APPLET!!

A failed attempt to get Java and JavaScript to communicate!






Ryan Stansifer <ryan@cs.fit.edu>
Last modified: Tue Feb 24 14:25:37 EST 2004