This applet is from the book
Core Java
by
Cay Horstmann
and
Gary Cornell
.
The source.