This example is an applet which displays some moving text in a window; this applet follows the algorithm used in one of the earliest Java applets, 'NervousText'.
Here's the source, as a plain ASCII file.
This one is a bit more sophisticated than the 'Hello World' applet: the text jiggles, and you can start or stop the movement by clicking on the applet window.
The applet is compiled using the same steps as for the 'Hello World' applet. Unlike 'Hello World', however, this applet takes as a parameter the text to be displayed; to have the applet displayed in World Wide Web page, you need to
You can then view the page with any Java-enabled browser, or with the
'applet viewer' that comes with the Java Development Kit. If you are
using such program, you should see the applet below here.
For more details on running applets, see the Hello World applet page.