# Teach Yourself Java in 21 Days 1996 — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-teach-yourself-java-in-21-days-1996-935aa8/2)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-teach-yourself-java-in-21-days-1996-935aa8/2#scan-ce187bf661bcb2c533d11942e19b97def9f8e23b7db90e984795e33b78887e3e)

Transcribed text:

Teach Yourself JAVA in 21 Days
Overriding Methods ... ............ ... ......... .... ..... ....... ......... ...... ........... .......... 119
Creating Methods that Override Existing Methods .. ................. ......... 119
Calling the Original Method .. ........ ........... ...... .... .................. ............ 121
Overriding Constructors .... .... .. ....... ......... .............. ........... ....... .......... 122
Finalizer Methods ..... .......... .............................................. ...................... 123
Summary ........ ... ............ ......... .... ...... ........... .... ... .............. ................ ...... 124
Q&A ......................................................................................................   124
Week 2 at a Glance   127
Day   8   Java Applet Basics   129
How Applets and Applications Are Different ................. ......... .. ...... ........   130
Creating Applets ... ..... ........... .......................... ........................................ 131
Major Applet Activities ... ...................... ..... .... ..... ...... .. ............ ... ........ 132
A Simple Applet ......................................................... .... .................... 134
Including an Applet on a Web   Page   .... ....... .. .............. ......... .............. ...... 136
The   <APPLET>   Tag ..... ...................... ........ .......... .................... ..... .. .. 136
Testing the Result ................... .. .... ..... ....... .. ... ... ......... ..... ......... ..... ..... 137
Making Java Applets Available to the Web .............................. ........... 137
More About the   <APPLET>   Tag ... ...................................... ............. ...... 138
ALIGN .... ... .... ...... ..... ......... ... .... ...... ..... ... .. .......... ..... ....... ..... .............   138
HSPACEand   VSPACE   ...... ....... ... ................. ... ... .... .. ... ... .. ...... ....... ....   140
CODEand   CODEBASE   .... .... ....... ...... ..... ...... ... ..... ...... ..... ..... ..... ..... ..   141
Passing   Parameters to Applets ....... .. ........... ...................... ....................... 141
Summary ....... .............. ........................ .......................... .................... .... . 146
Q&A ......................................................................................................   147
Day   9   Graphics, Fonts, and Color   149
The Graphics Class .. .................. ..... ................... ....... ..............................   150
The Graphics Coordinate System .. ............... ..... ............ .................... 151
Drawing and Filling ..... ................... ............ ........... ..................... ........... 151
Lines ... ... .... ...... ........ ...................... ..... ...... ........... .............. ............... . 152
Rectangles ..... ........... ............. .............. .................... ..... ....... ...... ...... ... 152
Polygons   .. .................................... ..... ........... ... .. ......... .... ..... ....... ........ 155
Ovals   .............. ...... ................. ........ ....... ...... ... ........... ....... ....... ...... ..... 156
Arc ...... ... ......... ........ ....... ....... ............................................................. 157
A Simple Graphics Example ......... ......... ......... .... ........ .... ......... ..... ...   : .. 161
Copying and Clearing ..... .... ................................. ... ........................... 163
Text and Fonts .. ....... ..................... ....... ........... ....... ....... ........... .......... .... 163
Creating Font Objects ............. ....... ............. ....... .... .......... ...... ........ ... 163
Drawing Characters and Strings ... ............... ... ....... ........... .................. 164
Finding   Out   Information About a Font ......... .. ... .... .. ........ ... .............. 166
Color ... .... .... ...... ...... ................. .. ........... ............. ..... .... ............... ........ .... 168
Using   Color   Objects   ...... ....................... ...... ..................................... .. 168
Tes   ting and Setting the Current Colors ............................... .............. 169
A Single Color Example .............. ........ ... ... .. ... ......... ........... .... ............   170
Summary .......... ...................... ......... ...... .. .................................... ........... 171
Q&A .................................................................................... ..................   171
xii

Reading notes: Table of contents page numbers and dot leaders are present; page references are not separate content fields.

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/f87c4ebff3edbbfc80f3a47567db3a5ba60fa3eda495bc9a23f64f0039c8b8bd/Teach_Yourself_Java_in_21_Days_1996.pdf#page=12)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-teach-yourself-java-in-21-days-1996-935aa8/1.md)
