Java Reference
In-Depth Information
3. Click the Yes button.
After a few seconds, the applet is displayed in the Applet Viewer window,
400 pixels wide and 200 pixels tall, as defined in the HTML code
(Figure 2-63).
black text on cyan
background
class name
on title bar
Applet Viewer
window
Applet
menu
Smile.gif
image
command
prompt
window
FIGURE 2-63
OTHER WAYS
When the applet is displayed in the Applet Viewer window, the Smile.gif
image displays to the left, and black text on a cyan background displays to the
right. The command prompt window is displayed in the background .
The title bar of the Applet Viewer window displays the name of the class.
The Applet Viewer window also displays an Applet menu (Figure 2-63) that
allows you to perform such functions as restarting the applet, printing the
applet, and closing the applet. For information on running an applet from the
command prompt window, see Appendix D.
1. Press CTRL + 3, click Yes
2. At command
prompt, type
appletviewer
WelcomeApplet
.html
3. In browser Address
box, type
a:\Chapter02\
WelcomeApplet
.html
Documenting the Applet and HTML Host Document
The final step in the program development cycle is to document the applet
and HTML host document code. After the applet is documented, the applet can
be closed.
Perform the following steps to print a hard copy of the applet display, close
the Applet Viewer window, print the HTML code, and then print the applet
code.
 
Search WWH ::




Custom Search