This section shows how to convert a program called DialogWindow
from the 1.0 API to the 1.1 API.
DialogWindow is an application,
but it can also run as an applet,
with the help of a class named AppletButton
.
(Readers of
The
Java Tutorial
might find this program familiar,
since it's featured in the section
"How
to Use Dialogs".)
Below is the 1.0 version of DialogWindow
(here's a link to the source code),
running as an applet with the help of
AppletButton: