|
falling through switch statements
bugs from, 81
defined, 470
false value, 25
families of fonts, 205–206, 284
FancyButtonInFrame class, 295
fancysrc package, 389
FancySrcCanvas class, 377–391
FancySrcFrame class, 361–362, 361, 371
fields
in API pages, 227, 227
defined, 470
for objects, 121–122
text fields, 309–310, 310
events from, 353–355, 354–355
in flow layout managers, 316
File menu
in final project, 362–365, 362, 364
guidelines for, 308
file separators
defined, 470
problems with, 249
FileDialog class, 365–366, 366
FileDialogPractice class, 367–368
FileInputStream class, 249, 254
filenames, backslashes in, 249–250
FileNotFoundException class, 251–252
FileOutputStream class, 249, 251
FileReader class, 263, 265
files
character code for, 263
Data Chain Lab for, 261, 262
exercise questions for, 267
exercise solutions for, 443–445
in final project, 365–368, 366
line number readers for, 265, 266
names for, 249–250
new lines in, 264–265
reading, 249
bytes, 254–255, 256
data, 259–261, 259, 262
as sequences of bytes, 248–249
writing, 249
bytes, 251–252, 253
data, 256–259, 257
FileWriter class, 263–264
Filled class, 281
filling in drawing, 281–282, 281, 283
fillRect method, 281
final modifier
defined, 470
working with, 180–182
final project
colors in, 368–376, 369, 372
description of, 360–362, 360–361
exercise questions for, 392–393
exercise solutions for, 461–465
File menu in, 362–365, 362, 364
main display area in, 376–378, 377
painting in, 378–389, 379
parts of
building, 361–362
combining, 389–391
specifying files in, 365–368, 366
finding packages, 168–170
Fish class, 177
flags
defined, 470
for program status, 95
float data type
defined, 470
range of, 24–25
with result types, 52–53, 53
wrapper class for, 240
floating-point data types, 24–25
Floating-Point Lab animated illustration, 25
Flow Lab animated illustration, 316, 316
flow layout managers, 313–316, 315–316
FlowLayout class, 294
Font class, 285
Font Lab program, 286, 286
FontAndBaseline class, 283–284
FontChoice class, 303
FontChoiceWithLabels class, 304–305
fonts
choices for, 301–304, 301–302, 304
drawing, 283–286, 284–286
for loops
for arrays, 105–106
structure of, 86–89, 87
variables in, 97
fractions, 24
Frame class, 271
Frame Lab animated illustration, 287–289, 287–289
frames
color for, 271, 275–276
drawing, 287–289, 287–289
in painting, 270–273, 270
text in, 284–285, 284–285
FrameWithSimpleMenu class, 306
FrameWithSubmenu class, 307–308
friendly access, 174
|