Java Reference
In-Depth Information
CHAPTER
18
A
PPLETS
AND
M
ULTIMEDIA
Objectives
To convert GUI applications into applets (§18.2).
■
To embed applets in Web pages (§18.3).
■
To run applets from Web browsers and from the
appletviewer
command
(§§18.3.1-18.3.2).
■
To understand the applet security sandbox model (§18.4).
■
To write a Java program that can run both as an application and as an
applet (§18.5).
■
To override the applet life-cycle methods
init
,
start
,
stop
, and
destroy
(§18.6).
■
To pass string values to applets from HTML (§18.7).
■
To develop an animation for a bouncing ball (§18.8).
■
To develop an applet for the tic-tac-toe game (§18.9).
■
To locate resources (images and audio) using the
URL
class (§18.10).
■
To play audio in any Java program (§18.11).
■