My second Java Applet says:
Incidentally, the source code is
here
.