Index_P


P

package access, 174

package keyword, 166–167

packages, 164, 164

access control in. See access control

core. See core classes and packages

creating, 166–167, 166, 168

defined, 472

exercise questions for, 186

exercise solutions for, 435–438

finding, 168–170

importing, 170–172

interfaces in, 188

and namespaces, 165–166, 165

paint method, 276–277

in BlackLineOnWhite, 278

in BlueRect, 279

in CenteredOval, 282

in ColorChoiceTest, 376

in ColorTest, 373–374

in DisablingNim, 350

in FancySrcCanvas, 378, 380, 387

in Filled, 281

in FontAndBaseline, 284

in Frame, 287

in GraphicOutputNim, 347–348

in ThreeOvals, 280

in Xxxx, 331

painting, 270

color for, 273–276, 275–276

drawing shapes. See drawing

exercise questions for, 290

exercise solutions for, 445–448

in final project, 378–389, 379

Frame Lab for, 287–289, 287–289

frames in, 270–273, 270

process, 276–277

text, 283–286, 284–286

paintLines method, 380, 387

paintOneSourceLine method, 382–384, 388–389

paintRegion method

in BarChart, 185

in Chart, 185

in PieChart, 185

paintText method, 380–382, 387–388

Panel class, 320

PanelInFrame class, 320–321

panels, 320–324, 320, 322–324

parabolas, 108, 109

parentheses ()

in arithmetic operations, 38–40, 39

in boolean operations, 47

in do-while loops, 86

in for loops, 87

for if statements, 74

for methods, 60

parseInt method, 241

PartTimer class, 180

PassArrayLab animated illustration, 113–114

passing

arguments, 63, 67–68

references to methods, 112–114, 113

PATH environment variable, 396, 398–399, 403

payEveryone method, 156–159

Paymaster class, 156–159, 180

percent signs (%)

in compound assignment, 51

in modulo operations, 42

periods (.) for object properties, 118

Person class, 120–123, 126–131

PI variable, 244

PieChart class, 183, 185

pixels

defined, 472

for frames, 90, 272

plain font style, 284–285

plus signs (+)

for addition, 37

in compound assignment, 51

for string concatenation, 237–238

as unary operator, 44

PlusPlusMinusMinus class, 45

Point class, 236

Point3D class, 239, 239

polymorphism

with inheritance, 154–160

with methods, 65–66

position

in drawings, 277, 278

of text, 283

post-decrement operator, 46

post-increment operator, 46

PostDec class, 46

pow method, 243

pre-decrement operator, 46

pre-increment operator, 46

precedence

in arithmetic operations, 38–40, 39

in boolean operations, 47

defined, 472

summary, 54–55

preferred size

defined, 472

with layout managers, 314, 317

primary colors, 273–274

primitive data types

defined, 472

summary, 26

print2Cubes method, 66–67

print2Vals method, 66

print3x method, 67

printChars method, 233

printCheck method

in Employee, 142–143, 145–146, 179

in Officer, 153

overriding, 152–153

in PartTimer, 180

in Worker, 140–141

PrinterIOException class, 205, 209, 211, 213–215

printHelpMessage method, 235

printing, 30

println method, 60, 242, 364

printPretty method, 64

printRetAddr method, 208–211

printSomeEnvelopes method, 209–213

printStackTrace method, 216–217

printTriple method, 69

printWeight method, 177–178

private access

defined, 472

working with, 173–175

products, 37

program counters

incrementing, 7

purpose of, 5

program files

for Macintosh installation, 404

for Windows installation, 400–401

properties of objects, 118

protected access, 173

defined, 472

working with, 177–178

public access

defined, 472

working with, 173–174




Ground-Up Java
Ground-Up Java
ISBN: 0782141900
EAN: 2147483647
Year: 2005
Pages: 157
Authors: Philip Heller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net