Enahnced Digital Clock Applet

Click here to start

Table of contents

Enahnced Digital Clock Applet

Getting Applet Parameters

The java.awt.Graphics Class

The java.awt.Graphics Class (cont'd) 

The java.awt.FontMetrics Class 

Scrolling Banner Applet 

Field Declarations

Initialization 

Slide 9

Paint the Current Frame

The start(), stop(), and run() Methods

How to Avoid Flickering? 

Using An Off-Screen Image

Using An Off-Screen Image(cont'd)

Animation Applet Idiom

Animation Applet Idiom (cont'd)

Animation Applet Idiom (cont'd)

Another Applet -- Bouncing Ball 

Bouncing Ball (cont'd)

Bouncing Ball (cont'd)

Bouncing Ball (cont'd)

Bouncing Ball (cont'd)

Bouncing Ball (cont'd)

Bouncing Ball (cont'd)

Author: Xiaoping Jia

E-mail: jia@cti.depaul.edu

Homepage: http://www.depaul.edu/~xjia

Download presentation