19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER<br />

18<br />

APPLETS<br />

AND MULTIMEDIA<br />

Objectives<br />

■ To convert GUI applications in<strong>to</strong> applets (§18.2).<br />

■ To embed applets in Web pages (§18.3).<br />

■<br />

To run applets from Web browsers and from the appletviewer <strong>com</strong>mand<br />

(§§18.3.1–18.3.2).<br />

■ To understand the applet security sandbox model (§18.4).<br />

■<br />

■<br />

To write a <strong>Java</strong> program that can run both as an application and as an<br />

applet (§18.5).<br />

To override the applet life-cycle methods init, start, s<strong>to</strong>p, and<br />

destroy (§18.6).<br />

■ To pass string values <strong>to</strong> applets from HTML (§18.7).<br />

■ To develop an animation for a bouncing ball (§18.8).<br />

■ To develop an applet for the tic-tac-<strong>to</strong>e game (§18.9).<br />

■ To locate resources (images and audio) using the URL class (§18.10).<br />

■ To play audio in any <strong>Java</strong> program (§18.11).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!