Index

Symbols

^, boolean logical exclusive OR 142, 144

truth table 144

_ SQL wildcard character 799, 800

, (comma) formatting flag 129

--, predecrement/postdecrement 109, 110

-, subtraction 38, 39

!, logical NOT 142, 144

truth table 145

!=, not equals 40

? (wildcard type argument) 583

?:, ternary conditional operator 92, 112

. dot separator 59

, flag 1006

( flag 1006

{, left brace 26

}, right brace 26

* SQL wildcard character 798

* wildcard in a file name 60

*, multiplication 38, 39

/, division 38, 39

/* */ traditional comment 24

/** */ Java documentation comment 24

//, end-of-line comment 24

, escape character 31

’, single-quote-character escape sequence 1010

", double-quote escape sequence 31, 1010

\, backslash-character escape sequence 1010

, escape sequence 1010

f, form-feed escape sequence 1010

, newline escape sequence 31, 1010

, carriage-return escape sequence 31, 1010

, horizontal tab escape sequence 31, 1010

&, boolean logical AND 142, 144

&&, conditional AND 142, 143

truth table 142

# flag 1006, 1007

% conversion character 1002

% SQL wildcard character 799

%, remainder 38, 39

%% format specifier 1003

%b format specifier 145

%c format specifier 999

%d format specifier 37, 995, 996

%f format specifier 75

%o octal format specifier 996

%s format specifier 32, 995

- flag 1006

+ flag 1006

(minus sign) formatting flag 129

+, addition 38, 39

+, string concatenation 1028

++, preincrement/postincrement 109

+=, addition assignment operator 109, 136

+=, string concatenation assignment operator 1029

<, less than 40

<=, less than or equal 40

=, assignment operator 36

== to determine whether two references refer to the same object 334

==, is equal to 40

>, greater than 40

>= greater than or equal to 40

|, boolean logical inclusive OR 142, 144

||, conditional OR 142, 143

truth table 143

Numerics

0 flag 212

0 format flag 254

0x (hexadecimal prefix) 1007

127.0.0.1 (localhost IP address) 849

127.0.0.1 (localhost) 761

A

abbreviating assignment expressions 109

abnormally terminate a program 215

abs method of Math 157

absolute method of Result-Set 819

absolute path 521, 525

absolute positioning 866

absolute value 157

abstract class 338, 343, 344, 362

abstract data type (ADT) 253, 283, 285

abstract implementation 634

abstract keyword 343

abstract method 343, 345, 347, 378, 401, 1053

abstract superclass 343, 378

Abstract Window Toolkit (AWT) 387, 652

Abstract Window Toolkit (AWT) package 166

Abstract Window Toolkit Event package 166

AbstractButton class 404, 407, 642, 647

addItemListener method 410

isSelected method 649

setMnemonic method 647

setRolloverIcon method 406

setSelected method 648

AbstractCollection class 634

AbstractList class 634

AbstractMap class 634

AbstractPageBean class 860, 865, 979

AbstractQueue class 634

AbstractSequentialList class 634

AbstractSessionBean class 895

AbstractSet class 634

AbstractTableModel class 814, 820

fireTableStructureChanged method 820

accept method of class ServerSocket 754, 761

access modifier 58, 66, 291

private 66, 302

protected 256, 276, 302

public 58, 302

access shared data 701

accessor method 266

Account class (ATM case study) 50, 80, 83, 114, 115, 195, 244, 245, 247, 248, 249

Account class with an instance variable of type double 74

AccountRecord class for serializable objects 542

AccountRecord maintains information for one account 526

acquire the lock 688

action 91, 96, 283, 855

action expression in the UML 89, 92, 149

action key 434

action of an object 148

action oriented 14

action state in the UML 89, 149

action state symbol 89

action/decision model of programming 92

ActionEvent class 398, 399, 403, 451

getActionCommand method 399, 407

ActionListener class 398

ActionListener interface 403

actionPerformed method 399, 401, 445, 451

actionPerformed method of ActionListener 399, 401, 445, 451

ACTIVATED constant of nested class EventType 753

activation in a UML sequence diagram 247

activation record 163, 193

activity diagram 89, 89, 92, 125

do...while statement 131

for statement 126

if statement 91

if...else statement 92

in the UML 51, 96, 148, 149, 150, 152

sequence statement 89

switch statement 139

while statement 96

activity in the UML 51, 89, 148, 151

actor in use case in the UML 49

actual type arguments 561

acyclic gradient 482

Ada programming language 677

adapter class 427

Adapter Classes used to implement event handlers 431

add a web service reference to an application in Netbeans 947

add an event handler in Netbeans 1059

Add Binding Attribute 868, 908

add method

ButtonGroup 413

JFrame 392

LinkedList 601

List 595

Vector 604

add method of ArrayList 582

add method of class ArrayList 749

add method of class JMenu 647

add method of class JMenuBar 648

addActionListener method of JTextField 398

addAll method

Collections 606, 617

List 599

addFirst method of LinkedList 601

addGap method of class GroupLayout.Group 1056

addGap method of class GroupLayout.Parallel-Group 1056

addGap method of class GroupLayout.Sequential-Group 1056

adding a web service reference to a project in Netbeans 947

addItemListener method of AbstractButton 410

addition 38, 39

addition compound

assignment operator, += 109

addition program that displays the sum of two numbers 33

addKeyListener method of Component 437

addLast method of LinkedList 601

addListSelectionListener method of JList 419

addMouseListener method of Component 427

addMouseMotionListener method of Component 427

addPoint method of class Polygon 477, 479

addSeparator method of class JMenu 648

addTab method of class JTabbedPane 660

addTableModelListener method of TableModel 814

addTrayIcon method of class SystemTray 1072

addWindowListener method of class Window 641

ADF Faces 856

ADT (abstract data type) 283

aggregation in the UML 82

Agile Software Development 18

agile software development xxiii

Ajax 18, 922

Ajax (Asynchronous JavaScript and XML) 920

Ajax-enabled component libraries 907

Ajax-enabled JSF components xxiii

AJAX-enabled web applications xxiii

Ajax libraries 921

Ajax web application 922

algebraic notation 38

algorithm 92, 190, 605

algorithm in Java Collections Framework 605

aligning components in GroupLayout 1056

aligning decimal points in output 995

alphabetizing 1018

analysis stage of the software life cycle 48

analyzing a project’s requirements 15

anchor field of class GridBagConstraints 667

AND 805, 806

angle brackets (< and >) 561

Annotations

@Resource 961

@WebMethod 941

@WebParam 941

@WebService 941

dependency injection 961

annotations xxiii

anonymous inner class 416, 417, 433

Apache Derby xxii, 828

Apache Software Foundation 19

Apache Tomcat 941

API 155

API (application programming interface) 34, 155

API Documentation (java.sun.com/javase/6/docs/) 5

API documentation (java.sun.com/javase/6/docs/api/) 165, 167

API links

Deprecated 1075

Help 1075

Index 1075

Tree 1075

append method of class StringBuilder 1032

appendRow method of class CachedRowSetDataProvider 920

applet 748

Applet class

getAppletContext method 750

getParameter method 748

Applet Package 165

applet parameter 748

AppletContext interface 745

showDocument method 745, 750

applets in the public domain 748

application 23, 25, 58

command-line arguments 158

application programming interface (API) 5, 155

application scope 856

application server 848

Application servers

Apache Tomcat 941

BEA Weblogic Server 941

GlassFish 941

JBoss Application Server 941

ApplicationBean 856

arc 474

arc angle 474

arc width and arc height for

rounded rectangles 473

Arc2D class 454

CHORD constant 484

OPEN constant 484

PIE constant 484

Arc2D.Double class 480

archive files 288

Arcs displayed with drawArc and fillArc 475

args parameter 240

argument index 995, 1001, 1009

argument list 996

argument promotion 164

argument to a method 27, 61

arithmetic compound assignment operators 109

arithmetic operators 37

arithmetic overflow 283, 497

ArithmeticException class 491, 497

array 203, 516, 749

length field 204

pass an array element to a method 221

pass an array to a method 221

array-access expression 204

array-creation expression 205

array initializer 207

nested 230

array initializer for multidimensional array 229

array of one-dimensional arrays 229, 230

ArrayBlockingQueue class 701, 703, 714

size method 705

arraycopy method of System 592

array-creation expression in the context of generics 568

ArrayIndexOutOfBoundsException 479

ArrayIndexOutOfBoundsException class 215, 488

ArrayList class 250, 581, 594, 615, 749, 962

add method 582, 749

toString method 582

Arrays class 590

asList method 599, 600

binarySearch method 590

equals method 590

fill method 590

sort method 590

Arrays class methods 590

arrow 89

arrow key 434

arrowhead in a UML sequence diagram 247

ascending order 592

ASC in SQL 800, 801, 802

ascent 467

ASCII (American Standard Code for Information Interchange) character set 139, 517

ASCII character set Appendix 1052

asList method of Arrays 599, 600

assert statement 513, 1053

assertion 512

Assigning superclass and subclass references to superclass and subclass variables 341

assignment operator, = 36, 37, 42

assignment operators 109

associate

left to right 112

right to left 105, 112

association (in the UML) 80, 82, 294

name 81

association in the UML 15

associativity of operators 39, 43, 112

right to left 39

asterisk (*) SQL wildcard character 798

asynchronous call 246

asynchronous event 497

Asynchronous JavaScript and XML (Ajax) 920

asynchronous request 922

ATM (automated teller machine) case study 44, 48

ATM class (ATM case study) 80, 81, 82, 114, 116, 148, 195, 243, 244, 245, 246, 247, 292

ATM system 49, 50, 78, 79, 113, 147, 194, 291

atomic operation 693, 845

attribute 291, 294

compartment in a class diagram 115

declaration in the UML 116, 117

in the UML 60, 80, 84, 113, 114, 116, 147, 151

name in the UML 116

type in the UML 116

attribute in the UML 14, 377

attribute of a class 4

authorISBN table of books database 794, 795

authors table of books database 794, 795

auto commit state 846

autobox an int 565

autoboxing 565

autoComplete attribute of a Text Field 925

AutoComplete interface 930

getOptions method 928, 930

autoComplete property of a JSF Text Field component 923

auto-complete text field 923

auto-complete Text Field component 923

autoCompleteExpression attribute of a Text Field 925

autoincremented 795, 804

automated teller machine (ATM) 44, 48

user interface 44

automated teller machine (ATM) case study xxii

automatic driver discovery 810

automatic driver discovery (JDBC 4) xxii

automatic garbage collection 500

automatic scrolling 419

average 97, 99

await method of interface Condition 720, 724

awaitTermination method of interface ExecutorService 692

AWT (Abstract Window Toolkit) 387

components 387

AWTEvent class 400

B

B conversion character 1002

b conversion character 1002

B programming language 3

B2B (business-to-business) transactions 935

background color 461, 463

backslash () 30, 1010

BalanceInquiry class (ATM case study) 80, 83, 114, 115, 116, 149, 194, 195, 243, 244, 245, 246, 247, 293, 373, 374, 375

BankDatabase class (ATM case study) 80, 83, 114, 195, 243, 244, 245, 246, 247, 248, 249, 292, 294

bar chart 210, 211

Bar chart printing program 211

bar of asterisks 210, 211

base case 184, 188, 190

base class 299

base of a number 1037

BASELINE alignment constant in GroupLayout 1056

baseline of the font 465

BasePlusCommissionEmployee class derived from CommissionEmployee 354

BasePlusCommissionEmployee class represents an employee that receives a base salary in addition to a commission 309

BasePlusCommissionEmplo yee3 inherits protected instance variables from CommissionEmployee2 319

BasePlusCommissionEmplo yee4 class that extends CommissionEmployee3, which provides only private instance variables 325

BasicStroke class 454, 483

CAP_ROUND constant 484

JOIN_ROUND constant 484

batch file 528

BCPL programming language 3

BEA Weblogic Server 941

behavior 14, 194

behavior of a class 4

behavior of the system 148, 151, 245

behaviors in the UML 14

Bell Laboratories 4

bidirectional iterator 599

bidirectional navigability in the UML 293

BigDecimal class 130, 187

BigInteger class 187, 936

binary arithmetic operators 105

binary digit (bit) 517

binary file 519

binary operator 36, 38, 144

binary search algorithm 615

binarySearch method

of Arrays 590

of Collections 606, 615, 616

BindException class 756

binding a JSF Table to a database table 910

binding attribute 868, 885

binding the server to the port 754, 768

BindingProvider interface 972

getRequestContext method 972

bit (binary digit) 517

blackjack 957

blank line 25

_blank target frame 750

block 94, 103, 160, 754, 771

block increment of a JSlider 637

block until connection received 761

blocked state 680, 688

BlockingQueue interface 703

put method 703, 705

take method 703, 705

blogosphere 18

blogs 18

body

of a class declaration 26

of a loop 96

of a method 26

of an if statement 39

Bohm, C. 88

BOLD constant of class Font 464, 465

Booch, Grady 15, 16

book-title capitalization 385, 404

books database 794

table relationships 797

boolean promotions 164

Boolean attribute in the UML 114

boolean expression 92, 1115

boolean logical AND, & 142, 144

boolean logical exclusive OR, ^ 142, 144

truth table 144

boolean logical inclusive OR, | 144

boolean primitive type 92, 1053, 1054, 1115

border of a JFrame 640

BorderLayout class 426, 437, 438, 442, 451

CENTER constant 426, 442, 444

EAST constant 426, 442

NORTH constant 426, 442

SOUTH constant 426, 442

WEST constant 426, 442

BOTH constant of class GridBagConstraints 667

bottom tier 853

bounded buffer 713

bounding rectangle 472, 474, 637

Box class 451, 662, 664

createGlue method 666

createHorizontalBox method 451, 664

createHorizontalGlue method 664

createHorizontal-Strut method 664

createRigidArea method 666

createVerticalBox method 664

createVerticalGlue method 666

createVerticalStrut method 664

X_AXIS constant 666

Y_AXIS constant 666

boxing 565

BoxLayout class 451, 662, 663

BoxLayout layout manager 663

braces ({ and }) 94, 95, 103, 123, 132

braces not required 136

braces, { } 207

braille screen reader 388

branch in the UML 149

break 1053

break mode 1112

break statement 136, 139, 140

breakpoint 1110

inserting 1112, 1114

listing 1123

removing 1123

bricks-and-mortar store 883

brightness 463

brittle software 321

browse method of class Desktop 1069

browser package demo 1072

browsing 748

buffer 550, 696, 697

BufferedImage class 483

createGraphics method 483

TYPE_INT_RGB constant 483

BufferedInputStream class 551

BufferedOutputStream class 550

flush method 551

BufferedReader class 551

BufferedWriter class 551

Build option in Netbeans 942

building-block approach to creating programs 5, 15

built-in type 35

bulk operation 593

business-critical computing 495

business logic 853

business rule 853

business-to-business (B2B) transactions 935

button 382

Button JSF component 870, 874

primary property 908

reset property 908

button label 404

ButtonGroup class 410, 642, 651

add method 413

byte 517

byte-based stream 519

byte keyword 1054

byte primitive type 132, 517, 1053

promotions 164

ByteArrayInputStream class 551

ByteArrayOutputStream class 551

bytecode 7, 28

bytecode verifier 8

C

C++ programming language 4

cache 852

CachedRowSet 916

CachedRowSet interface 826, 911

close method 828

CachedRowSetDataProvider class

commitChanges method 920

CachedRowSetDataProvider class 911, 920

appendRow method 920

refresh method 920

Calculating values to be placed into elements of an array 208

calculations 53, 89

Calendar class 1001

getInstance method 1001

call-by-reference 223

call-by-value 223

call method of interface Callable 741

Callable interface 741 call method 741

CallableStatement interface 845

callback function 922

calling method (caller) 58, 66

CANCEL_OPTION constant of JFileChooser 555

canRead method of File 521

canWrite method of File 521

CAP_ROUND constant of class BasicStroke 484

capacity increment of a Vector 601, 602, 604

capacity method

of class StringBuilder 1029

of Vector 605

capacity of a StringBuilder 1028

Caps Lock key 435

card games 215

Card Shuffling and Dealing 218

card shuffling and dealing with Collections method shuffle 610

carriage return 31

case keyword 136, 1053

case sensitive 25

case sensitivity of Java commands 10

case studies xxii

CashDispenser class (ATM case study) 80, 81, 82, 114, 115, 195, 249

casino 167, 173

cast

downcast 340

cast operator 104, 165

catch an exception 492

catch block 494, 497, 501, 504, 507

catch clause 494, 1053

catch keyword 494

catch-or-declare requirement 499

catch superclass exception type 500

cd to change directories 28

ceil method of Math 157

CENTER alignment constant in GroupLayout 1056

CENTER constant of Border-Layout 426, 442, 444

CENTER constant of class GridBagConstraints 667

CENTER constant of FlowLayout 442

center mouse button click 430

centered 439

chained exception 509

ChangeEvent class 639

ChangeListener interface 639

stateChanged method 639

changing look-and-feel of a Swing-based GUI 655

chapter dependency chart xxiv

char

array 1016

primitive type 35, 132

promotions 164

char keyword 1053, 1054

character 166, 517

constant 139

literal 1014

set 517

character-based stream 519

Character class 1014, 1035

charValue method 1038

digit method 1037

forDigit method 1037

isDefined method 1035

isDigit method 1035

isJavaIdentifierPart method 1035

isJavaIdentifierStart method 1035

isLetter method 1036

isLetterOrDigit method 1036

isLowerCase method 1037

isUpperCase method 1037

non-static methods 1039

static conversion methods 1038

static methods for testing characters and converting character case 1036

toLowerCase method 1037

toUpperCase method 1037

CharArrayReader class 551

CharArrayWriter class 551

charAt method

of class String 1016

of class StringBuilder 1031

CharSequence interface 1048

charValue method of class Character 1038

checkbox 404, 410

checkbox label 408

checked exception 498

Checking with assert that a value is within range 513

child window 636, 656, 660

Choosing colors with JColor-Chooser 462

CHORD constant of class Arc2D 484

circular buffer 714

clarity 2

class 4, 14, 116, 155, 194, 198, 291

class keyword 58

constructor 59, 70, 294

data hiding 66

declaration 25

declare a method 57

default constructor 70

field 65

file 28

get method 260

instance variable 56, 65, 157

instantiating an object 57

name 25, 287, 294

set method 260

user defined 25

class 517

class average 96

class-average problem 97, 101

class cannot extend a final class 360

Class class 334, 359, 392, 819

getName method 335, 359

getResource method 392

Class declaration with one method 57

Class declaration with one method that has a parameter 61

class diagram

for the ATM system model 83, 85

in the UML 50, 80, 82, 113, 115, 195, 291, 294

class diagram in the UML 375, 376, 377

.class file 7, 8, 28

separate one for every class 259

class hierarchy 299, 344

class instance creation expression 59, 72

class keyword 25, 58, 1053

class library 130, 282, 300, 333

class loader 8, 288, 392

class method 156

class name

fully qualified 64

Class that manages an integer array to be shared by multiple threads 689

Class that manages an integer array to be shared by multiple threads with synchronization 694

class variable 157, 274

classwide information 274

ClassCastException class 488, 566

Classes

AbstractButton 404, 407, 642, 647

AbstractCollection 634

AbstractList 634

AbstractMap 634

AbstractPageBean 860, 979

AbstractQueue 634

AbstractSequentialList 634

AbstractSessionBean 895

AbstractSet 634

AbstractTableModel 814, 820

ActionEvent 398, 399, 403, 451

ActionListener 398

Arc2D 454

Arc2D.Double 480

ArithmeticException 491

ArrayBlockingQueue 701, 703, 714

ArrayIndexOutOfBoundsException 488

ArrayList 250, 581, 594, 615, 749

Arrays 590

AWTEvent 400

BasicStroke 454, 483

BigDecimal 130, 187

BigInteger 187, 936

BindException 756

BorderLayout 426, 437, 438, 442, 451

Box 451, 662, 664

BoxLayout 451, 662, 663

BufferedImage 483

BufferedInputStream 551

BufferedOutputStream 550

BufferedReader 551

BufferedWriter 551

ButtonGroup 410, 642, 651

ByteArrayInputStream 551

ByteArrayOutputStream 551

CachedRowSetDataProvider 911, 920

Calendar 1001

ChangeEvent 639

Character 1014, 1032, 1035

CharArrayReader 551

CharArrayWriter 551

Class 334, 359, 392, 819

ClassCastException 488, 566

Collections 563, 593

Color 454

Component 388, 422, 457, 641, 672

ComponentAdapter 427

ComponentListener 439

Container 388, 419, 438, 447

ContainerAdapter 427

Cookie 892

DatagramPacket 768, 790

DatagramSocket 768

DataInputStream 550

DataOutputStream 550

Date 1001

Desktop 1069

Dimension 638

Double 581

DriverManager 811

Ellipse2D 454

Ellipse2D.Double 480

Ellipse2D.Float 480

EmptyStackException 620

EnumSet class 273

Error 498

EventListenerList 401

Exception 498

ExecutionException 730

Executors 686

File 520

FileInputStream 520

FileOutputStream 520

FileReader 520, 552

FileWriter 520

FilterInputStream 550

FilterOutputStream 550

FlowLayout 391, 438

FocusAdapter 427

Font 408, 454, 465

FontMetrics 454, 467

Formatter 520, 994

Frame 640

GeneralPath 454, 484

GradientPaint 454, 482

Graphics 433, 434, 454, 478

Graphics2D 454, 479, 483

GridBagConstraints 667, 672

GridBagLayout 662, 666, 668, 672

GridLayout 438, 445

GroupLayout 1055

GroupLayout.Group 1056

GroupLayout.ParallelGroup 1056

GroupLayout.SequentialGroup 1056

HashMap 625, 749, 891, 892, 899, 900

HashSet 622

Hashtable 625

HttpServletRequest 893

HttpServletResponse 892

HyperlinkEvent 750, 753

IllegalMonitorState-Exception 707, 721

ImageIcon 392

InetAddress 761, 766, 771, 772

InputEvent 423, 430, 434

InputMismatchException 491

InputStream 550, 754, 755, 756

InputStreamReader 552

Integer 385, 581

InterruptedException 684

ItemEvent 410, 413

JApplet 641

JButton 386, 404, 407, 445

JCheckBox 386, 407

JCheckBoxMenuItem 641, 642, 649

JColorChooser 461, 462

JComboBox 386, 414, 668

JComponent 388, 389, 391, 401, 414, 417, 431, 447, 454

JdbcRowSetImpl 828

JDesktopPane 656

JDialog 648

JEditorPane 750

JFileChooser 552

JFrame 640

JInternalFrame 656, 660

JLabel 386, 389

JList 386, 417

JMenu 641, 642, 649, 660

JMenuBar 641, 642, 648, 660

JMenuItem 641, 642, 660

JOptionPane 383

JPanel 386, 430, 431, 438, 447, 637

JPasswordField 394, 399

JPopupMenu 649, 651

JProgressBar 737

JRadioButton 407, 410, 413

JRadioButtonMenuItem 641, 642, 649, 651

JScrollPane 419, 422, 451, 451

JSlider 636, 637, 638, 1056

JTabbedPane 660, 666

JTable 813

JTextArea 449, 451, 668, 670

JTextComponent 394, 397, 449, 451

JTextField 386, 394, 398, 401, 449

JToggleButton 407

KeyAdapter 427

KeyEvent 403, 434

Line2D 454, 484

Line2D.Double 480

LinearGradientPaint 482

LineNumberReader 551

LinkedList 594

ListSelectionEvent 417

ListSelectionModel 419

MalformedURLException 749

Matcher 1014, 1048

Math 156

MouseAdapter 427, 428

MouseEvent 403, 423, 651

MouseMotionAdapter 427, 431

MouseWheelEvent 423

NullPointerException 488

Number 581

Object 273

ObjectInputStream 520, 754, 756, 761

ObjectOutputStream 520

OutputStream 550, 754, 755, 756

OutputStreamWriter 552

Pattern 1014, 1048

PipedInputStream 550

PipedOutputStream 550

PipedReader 552

PipedWriter 552

Point 433

Polygon 454, 476

PrintStream 550

PrintWriter 552

PriorityQueue 621

Properties 629, 899

RadialGradientPaint 482

Random 166, 167

Reader 551

Rectangle2D 454

Rectangle2D.Double 480

ReentrantLock 720, 722

RoundRectangle2D 454

RoundRectangle2D

.Double 480, 483

RoundRectangle2D.Double 483

RowFilter 825

RuntimeException 499, 506

Scanner 35, 62

ServerSocket 754, 756, 775

Socket 754, 767, 782, 783

SocketException 768

SplashScreen 1069

SQLException 811

SQLFeatureNotSupportedException 819

Stack 618

StackTraceElement 509

String 1014

StringBuffer 1028

StringBuilder 1014, 1028

StringIndexOutOf-BoundsException 1024, 1032

StringReader 552

StringTokenizer 629, 1014, 1040

StringWriter 552

SwingUtilities 655

SwingWorker 727

SystemColor 482

SystemTray 1072

TableModelEvent 825

TableRowSorter 825

TexturePaint 454, 482, 483

Thread 681, 684

Throwable 498, 506

TrayIcon 1072

TreeMap 625

TreeSet 622

Types 813

UIManager 653

UIViewRoot 858

UnknownHostException 755

UnsupportedOperationException 600

ValidatorException 882

Vector 594, 601

Window 640, 641

WindowAdapter 427

Writer 551

classified listings 17

ClassName.this 648

classpath 288, 811

-classpath command line argument

to javac 289

-classpath command-line argument 527

CLASSPATH environment variable 29, 289

-classpath option 811

Clean and Build option in Netbeans 942

Clean option in Netbeans 942

clear debugger command 1123

clear method

of List 599

of PriorityQueue 621

clearRect method of class Graphics 470

click a button 394, 404

click count 428

click the mouse 407

click the scroll arrows 416

client 744

client code 340

client connection 754

Client desktop application for the HugeInteger web service 950

Client interacting with server and web server. Step 1 The GET request 850

Client interacting with server and web server. Step 2 The HTTP response 851

client of a class 14, 194, 245, 283

client of an object 68

Client portion of a streamsocket connection between a client and a server 762

client-server relationship 744

client-side artifacts 947

Client side of connectionless client/server computing with datagrams 772

Client side of the client/server Tic-Tac-Toe program 783

client tier 853

client/server chat 756

clone method of Object 334

Cloneable interface 334

cloning objects

deep copy 334

shallow copy 334

close a window 389, 394

close method

of CachedRowSet 828

of Formatter 531

of JdbcRowSet 828

of ObjectOutput-Stream 547

close method of class Socket 755

closed polygons 476

closePath method of class GeneralPath 486

code reuse 299, 588

Code Search Engines and Code Sites xxviii

coin tossing 168

collaboration 243, 246

collaboration diagram in the UML 51, 245

collaboration in the UML 242

collaborative applications 790

collection 589

collection hierarchy 593

collection implementation 632

Collection interface 589, 593, 596, 605

contains method 596

demonstrated via an ArrayList object 595

iterator method 596

collections

synchronized collection 593

unmodifiable collection 593

Collections class 563, 593

addAll method 606, 617

binarySearch method 606, 615, 616

copy method 606, 613

disjoint method 606, 617

fill method 606, 613

frequency method 606, 617

max method 606, 613

min method 606, 613

reverse method 606, 613

reverseOrder method 607

shuffle method 606, 610, 612

sort method 606

wrapper methods 593

collections framework 588

Collections method addAll, frequency and disjoint 617

Collections method binarySearch 615

Collections method sort 606

Collections method sort with a Comparator object 607

Collections methods addAll, frequency and disjoint 617

Collections methods reverse, fill, copy, max and min 613

collision in a hashtable 626

color 454

Color changed for drawing 459

color chooser dialog 463

Color class 454

getBlue method 458, 460

getColor method 458

getGreen method 458, 460

getRed method 458, 460

setColor method 458

Color constant 457, 460

color manipulation 456

color swatches 463

column 229, 793, 793, 794

column number in a result set 799

columns of a two-dimensional array 229

com.sun.rave.web.ui.appbase package 860

com.sun.rowset package 828

com.sun.webui.jsf.component package 860

com.sun.webui.jsf.model package 930

combo box 382, 413

comma (,) 127

comma (,) formatting flag 129

comma in an argument list 32

comma-separated list 127

of parameters 160

of arguments 32, 35

command-and-control software system 677

command button 404

command line 27

command-line argument 158, 240, 242

Command Prompt 7, 27

command window 27, 30

comment 24, 35

end-of-line (single-line), / / 24, 27, 35

Javadoc 24, 849

multiple line 24

single line 24, 27, 35

commercial applications 516

CommissionEmployee class derived from Employee 352

CommissionEmployee class represents an employee paid a percentage of gross sales 304

CommissionEmployee class test program 307

CommissionEmployee2 with protected instance variables 316

CommissionEmployee3 class uses methods to manipulate its private instance variables 322

CommissionEmployee4’s constructor outputs text 328

commit a transaction 845

commit method of interface Connection 846

commitChanges method of class CachedRowSetDataProvider 920

Common Programming Errors overview xxvii

Commonly used JSF components 870

communication diagram in the UML 51, 245, 246

Comparable interface 372, 563, 606, 1020

compareTo method 606

Comparable<T> interface compareTo method 563

Comparator interface 606

Comparator object 607, 613, 623, 625

in sort 607

compareTo method

of class String 1018, 1020

of Comparable 606

compareTo method of Comparable<T> 563

compareTo method of interface Comparable 372

comparing String objects 1018

comparison operator 372

compilation error 24

compile 28

compile a program 7

compile method of class Pattern 1048

compile-time error 24

compiler error 24

compiler options -d 286

compile-time type safety 557

compiling an application with multiple Classes 60

complex curve 484

complexity theory 190

component 4, 166, 422

Component class 388, 422, 456, 457, 463, 641, 672

addKeyListener method 437

addMouseListener method 427

addMouseMotionListener method 427

getMaximumSize method 1056

getMinimumSize method 638, 1056

getPreferredSize method 638, 1056

repaint method 434

setBackground method 463

setFont method 408

setLocation method 641

setSize method 641

setVisible method 445, 641

component in the UML 15

component of an array 203

component tree 858

ComponentAdapter class 427

ComponentListener interface 427, 439

composition 81, 82, 85, 267, 300, 301

in the UML 81

Composition demonstration 270

Compound 127

compound assignment operators 109, 111

compound interest 127

calculations with for 128

computerized scientific notation 996

Computing the sum of the elements of an array 210

concat method of class String 1025

concatenate strings 277

concatenation 161, 1028

concrete class 343

concrete subclass 347

CONCUR_READ_ONLY constant 818

CONCUR_UPDATABLE constant 818

concurrency 677

concurrent access to a Collection by multiple threads 632

concurrent operations 677

concurrent programming 678

concurrent threads 701

condition 39, 131

Condition interface 720, 722

await method 720, 724

signal method 720

signalAll method 721

condition object 720

conditional AND, && 142, 143, 144

truth table 142

conditional expression 92, 254

conditional operator, ?: 92, 112

conditional OR, || 142, 143

truth table 143

Configure Virtual Forms... 923

confusing the equality operator == with the assignment operator = 42

connect to a database 809

connect to server 754, 755

connected lines 476

connected RowSet 826

connection 745, 755, 766, 768, 775, 783

connection between client and server terminates 756

connection between Java program and database 811

Connection interface 811, 813, 818, 845

commit method 846

createStatement method 812, 818

getAutoCommit method 846

prepareStatement method 832

rollBack method 846

setAutoCommit method 845

connection-oriented service 745

connection-oriented, streamsbased transmission 768

connection port 754

connectionless service 745, 768

connectionless transmission 768, 769

consistent state 254, 260

constant 279

constant (declare in an interface) 371, 373

constant integral expression 132, 138

constant variable 139, 209, 279

declare 209

must be initialized 209

constructor 59, 70, 294

call another constructor of the same class using this 262

naming 71

no argument 262

overloaded 259

parameter list 71

constructor call order 331

Constructor Detail section in API 1079

Constructor Summary section in API 1078

constructors cannot specify a return type 72

consume memory 193

consumed 399

consumer 696

consumer electronic device 4

consumer thread 696

consuming a web service 936, 945

cont debugger command 1113

Container class 388, 419, 438, 447

setLayout method 391, 441, 444, 447, 666

validate method 447

container class 267

container for menus 642

ContainerAdapter class 427

ContainerListener interface 427

contains method

of Collection 596

of Vector 604

containsKey method of Map 629

content pane 419, 649

setBackground method 419

context-sensitive popup menu 649

continue 1053

continue statement 139, 140

terminating a single iteration of a for statement 141

control statement 88, 90, 91, 120, 192

nesting 90

stacking 90

Control Statements

enhanced for 219

control variable 120, 121, 122, 124

controller logic 853

controlling expression of a switch 136

controls 383

converge on a base case 184

conversion character 995

% 1002

A 997

a 997

B 1002

b 1002

C 998

c 998

d 995

E 996, 997

e 996, 997

f 997

G 997

g 997

H 1002

h 1002

n 1002

o 995

S 998

s 998

T 999

t 999

X 995

x 995

conversion suffix character 999

A 1000

a 1000

B 1000

b 1000

c 999

D 999

d 1000

e 1000

F 999

H 1000

I 1000

j 1000

k 1001

l 1001

M 1001

m 1000

P 1001

p 1001

R 1000

r 1000

S 1001

T 1000

Y 1000

y 1000

Z 1001

convert an integral value to a floating-point value 165

cookie 884, 885, 893, 895

deletion 884

domain 895

expiration 884

expiration date 884

header 884

Cookie class 892

getDomain method 895

getMaxAge method 895

getName method 895

getPath method 895

getSecure method 895

getValue method 895

Cookies array 893

coordinate system 454, 456

coordinates (0, 0) 454

copy method of Collections 606, 613

copying objects

deep copy 334

shallow copy 334

Copying selected text from one text area to another 449

core package 28

cos method of Math 157

cosine 157

counter-controlled repetition 97, 103, 106, 120, 121, 122, 192

with the for repetition statement 122

with the while repetition statement 121

Craigslist 17

craps (casino game) 167, 173

create a desktop application in Netbeans 947

create a package 284

create a reusable class 284

create a Socket 755

create a web application in Netbeans 937

create an object of a class 59

create new classes from existing class declarations 304

createGlue method of class Box 666

createGraphics method of class BufferedImage 483

createHorizontalBox method of Box 451

createHorizontalBox method of class Box 664

createHorizontalGlue method of class Box 664

createHorizontalStrut method of class Box 664

createRigidArea method of class Box 666

createStatement method of Connection 812, 818

createVerticalBox method of class Box 664

createVerticalGlue method of class Box 666

createVerticalStrut method of class Box 664

Creating a GradeBook object and passing a String to its displayMessage method 62

creating a Java DB database in Netbeans 909

Creating a sequential text file 528

Creating an object of Grade-Book and calling its displayMessage method 59

creating and initializing an array 206

Creating and manipulating a GradeBook object 68

Credit inquiry program 536

cross-platform GUI development 386

CSS (Cascading Style Sheets) stylesheet 858, 864

<Ctrl>-d 135

Ctrl key 420, 437

Ctrl key 135

<Ctrl>-z 135

cursor 27, 30

curve 484

Custom Comparator class that compares two Time2 objects 608

custom drawing area 431

custom tag libraries 855

custom tags 855

custom type 982

customized subclass of JPanel 431

cyclic gradient 482

D

-d compiler option 286

dangling-else problem 93

dashed lines 480

data abstraction 283

data hiding 66

data hierarchy 517, 518

data in support of actions 283

data integrity 266

data provider 911

data representation 283

data structure 203, 267

data tier 853

database 519, 792, 797

table 793

database-driven multitier web

address book xxiii

database management system (DBMS) 519, 792

datagram packet 745, 768

datagram socket 745, 768

DatagramPacket class 768, 790

getAddress method 771

getData method 771

getLength method 771

getPort method 771

DatagramSocket class 768

receive method 771

send method 772

DataInput interface 550

DataInputStream class 550

DataOutput interface 550

writeBoolean method 550

writeByte method 550

writeBytes method 550

writeChar method 550

writeChars method 550

writeDouble method 550

writeFloat method 550

writeInt method 550

writeLong method 550

writeShort method 550

writeUTF method 550

DataOutputStream class 550

date 166

date and time compositions 999

Date class 1001

declaration 268

date formatting 995

DB2 792

dead state 680

deadlock 721, 725

dealing 215

debugger 1110

break mode 1112

breakpoint 1110

clear command 1123

cont command 1113

defined 1110, 1110

exit command 1119

-g compiler option 1111

inserting breakpoints 1112

jdb command 1112

logic error 1110

next command 1118

print command 1113, 1115

run command 1112, 1114

set command 1114, 1115

step command 1116

step up command 1117

stop command 1112, 1114

suspending program execution 1114

unwatch command 1119, 1121

watch command 1119

decimal digit 517

decimal integer 995

decimal integer formatting 37

decision 39, 91

decision in the UML 149

decision symbol in the UML 91

declaration 34

class 25, 26

import 34, 36

method 26

declare a constant variable 209

declare a method of a class 57

declare constants with

Interfaces 371

decrement of a control variable 120

decrement operator, -- 109, 110

dedicated drawing area 430

deep copy 334

default capacity increment 602

default case 170

default case in a switch 136, 138

default constructor 70, 265, 306

of an anonymous inner class 417

default exception handler 507

default initial value 67

default keyword 1053

default layout of the content pane 451

default package 64

default upper bound (Object) of a type parameter 569

default value 67, 113

define a custom drawing area 431

degree 474

Deitel® Buzz Online newsletter 20

Deitel® Buzz Online newsletter 20

[email protected] 3

del.icio.us 17

delegation event model 401

delete method of class StringBuilder 1034

DELETE SQL statement 798, 805, 806

deleteCharAt method of class String 1034

delimiter for tokens 1040

delimiter string 1040

dependency chart (chapters) xxiv

dependency injection 961

dependent condition 143

Deploy option in Netbeans 942

deploying a web service 942

Deposit class (ATM case study) 80, 83, 114, 194, 195, 244, 245, 250, 293, 373, 374, 375

DepositSlot class (ATM case study) 80, 81, 82, 114, 195, 245, 293

Deprecated link in API 1075

dequeue operation of queue 284

derived class 299

descending order 592

descending sort (DESC) 800, 801

descent 467

descriptive words and phrases 113, 115

deserialized object 541

Design mode in Java Studio Creator 2 908

Design mode in Netbeans 863, 867

design patterns xxiii, 19

design process 15, 44, 50, 195, 200

design specification 50

Design view in Netbeans 1057

Desktop class 1069

browse method 1069

getDesktop method 1069

isDesktopSupported method 1069

mail method 1069

open method 1069

destroy method (JavaServer Faces) 862, 865, 920

dialog box 383, 647

Dialog font 465

DialogInput font 465

diamond in the UML 89

dice game 173

Die-rolling program using arrays instead of switch 212

digit 35, 1037, 1041

digit method of class Character 1037

digitally signed applets 790

Dimension class 638

direct superclass 299, 301

directive 855

DIRECTORIES_ONLY constant of JFileChooser 555

directory 520, 522

directory name 521

directory separator 288

disconnected RowSet 826

disjoint method of

Collections 606, 617

disk 516

disk I/O completion 497

dismiss a dialog 385

dispatch

a thread 680

an event 403

display a line of text 27

display monitor 454

display output 53

Displaying multiple lines with method System.out.printf 32

Displaying the authors table from the books database 809

Displaying the authors table using JdbcRowSet 826

DisplayQueryResults for querying database books 820

dispose method of class Window 641

DISPOSE_ON_CLOSE constant of interface WindowConstants 641

distance between values (random numbers) 172

divide-and-conquer approach 155, 184

divide by zero 8, 491

division 38, 39

division by zero is undefined 284

DNS (domain name system) server 849

DNS lookup 849

do...while repetition statement 90, 130, 131, 1053

document 636, 656

Dojo Toolkit 907, 930

dollar signs ($) 25

domain name system (DNS)

server 849

dot (.) separator 59, 129, 156, 274, 480

dotted line in the UML 90

(double) cast 104

Double class 581

double-precision floating-point number 73

double primitive type 35, 73, 101, 1053, 1054

promotions 164

double quotes, " 27, 30, 31

Double Range Validator JSF component 874

double-selection statement 90

doubleValue method of Number 583

downcast 358

downcasting 340

drag the scroll box 416

dragging the mouse to highlight 451

draw method of class Graphics2D 483

draw shapes 454

draw3DRect method of class Graphics 470, 473

drawArc method of class Graphics 474

drawing color 458

Drawing lines, rectangles and ovals 471

drawing on the screen 456

drawLine method of class Graphics 470

drawOval method of class Graphics 471, 473

drawPolygon method of class Graphics 476, 477, 478

drawPolyline method of class Graphics 476, 478

drawRect method of class Graphics 470, 483

drawRoundRect method of class Graphics 472

drawString method of class Graphics 460

DriverManager class 811

getConnection method 811

drop-down list 386, 413

Drop Down List JSF component 870, 873

dummy value 100

duplicate key 625

duplicate of datagram 768

dynamic binding 358

dynamic content 4

dynamically resizable array 618, 749

E

EAST constant of BorderLayout 426, 442

EAST constant of class GridBagConstraints 667

echo character of JPassword-Field 394

echoes a packet back to the client 768

Eclipse Foundation 19

edit a program 7

Edit menu 382

editor 7

element of an array 203, 204

element of chance 167

elided UML diagram 80

eliminate resource leaks 501

Ellipse2D class 454

Ellipse2D.Double class 480

Ellipse2D.Float class 480

ellipsis (...) in a method parameter list 239

else 92

else keyword 1053

emacs 7

email 754

Employee abstract superclass 348

Employee class hierarchy test program 355

Employee class that implements Payable 366

Employee class with references to other objects 269

employee identification number 517

empty statement (a semicolon, ;) 43, 95, 132

empty string 399, 1016

EmptyStackException class 570, 620

EmptyStackException class declaration 570

en.wikipedia.org/wiki/IP_address 849

encapsulation 14, 360

enclosing try block 506

end cap 483

End key 434

“end of data entry” 100

end-of-file (EOF) 756

indicator 135

marker 519

end-of-line (single-line) comment, // 24, 27, 35

end-of-stream 756

EndOfFileException 549

endsWith method of class String 1021

enhanced for statement 219

enqueue operation of queue 284

ensureCapacity method of class StringBuilder 1029

Enter (or Return) key 401

ENTERED constant of nested class EventType 753

entity-relationship diagram 796

enum 176

constant 270

constructor 270

declaration 270

EnumSet class 273

keyword 176

values method 272

enum keyword 1053

enumeration 176

enumeration constant 176

EnumSet class 273

java.sun.com/javase/6/docs/api/java/util/EnumSet.html 273

range method 273

environment variable

CLASSPATH 29

PATH 28

EOF (end-of-file) 756

equal likelihood 169

Equality and relational operators 40

equality operator == to compare String objects 1018

equality operators 39

equals method of Arrays 590

equals method of class String 1018, 1020

equals method of Object 334

equalsIgnoreCase method of class String 1018, 1020

erasure 562, 563, 565

Error class 498

Error-Prevention Tips overview xxvii

error-processing code 489

escape character 30, 805

escape property of a Static Text component 875

escape sequence 31, 35, 525, 1010

newline, 31, 35

event 148, 373, 394, 457

event classes 400

event dispatch thread 726

event driven 394

event-driven process 457

event handler 373, 394

event handling 394, 397, 401

event source 399

event ID 403

event listener 372, 373, 401, 428

adapter class 427

interface 397, 399, 401, 403, 422, 427

event object 401

event processing life cycle 862

event processing lifecycle 860, 865

destroy method 862, 865, 920

init method 862, 865

preprocess method 862, 865

prerender method 862

event processingcycle prerender method 865

event registration 398

event source 399, 401

EventListenerList class 401

EventObject class getSource method 399, 410

EventType nested class

ACTIVATED constant 753

ENTERED constant 753

EXITED constant 753

EventType nested class of HyperlinkEvent 753

exception 214, 488

Exception class 498

exception handler 494

exception handling 488

Exception-handling example with divide-by-zero 492

exception parameter 494

exceptions ArrayIndexOutOfBoundsException 215

execute 28

execute method of JdbcRowSet 828

execute method of the Executor interface 686, 687

executeQuery method of interface PreparedStatement 836

executeQuery method of Statement 812

executeUpdate method of interface PreparedStatement 836

executing an application 9

ExecutionException class 730

Executor interface 686

execute method 686, 687

Executors class 686

newCachedThreadPool method 686

ExecutorService interface 686, 741

awaitTerminationmethod 692

shutdown method 687

submit method 741

exists method of File 521

exit debugger command 1119

exit method of class System 501

exit method of System 528

exit point of a control statement 90

EXITED constant of nested class EventType 753

exiting a for statement 140

exp method of Math 157

expanded submenu 647

expiration date of a cookie 884

explicit conversion 104

exponential format 995

exponential method 157

exponential notation 996

exponentiation operator 129

expression 37

extend a class 299

extending a class 365

extends keyword 304, 313, 1053

extensibility 340

Extensible HyperText Markup Language (XHTML) 849

Extensible Hypertext Markup Language (XHTML) 848

extensible language 16, 59, 284

Extensible Markup Language (XML) 854

extensions mechanism (extending Java with additional class libraries) 288

external event 422

extreme programming xxiii, 18

F

f:view element 858

FaceBook 17

factorial 184

Factorial calculations with a recursive method 186

factorial method 185

fairness policy of a lock 720

false 1053

false keyword 39, 91, 92

fault tolerant 36

fault-tolerant program 488

fibonacci method 189

Fibonacci numbers generated with a recursive method 188

Fibonacci series 187, 190

Fibonacci series defined recursively 187

field 14, 65, 517

default initial value 67

Field Detail section in API 1079

field of a class 178, 518

Field Summary section in API 1078

field width 128, 995, 1003

FIFO (first-in, first-out) 284

file 518

File class 520

canRead method 521

canWrite method 521

exists method 521

File methods 521

getAbsolutePath method 522

getName method 522

getParent method 522

getPath method 522

isAbsolute method 521

isDirectory method 521

isFile method 521, 522

lastModified method 522

length method 522

list method 522

used to obtain file and directory information 523

File methods 521

file name 26

Filename extension .jsp 856

file processing 520, 790

File.pathSeparator 525

FileExplorer demo 1072

FileInputStream class 520, 541, 543, 547, 550, 630

FileNotFoundException class 528

FileOutputStream class 520, 541, 543, 550, 630

FileReader class 520, 552

FILES_AND_DIRECTORIES constant of JFileChooser 555

FILES_ONLY constant of JFileChooser 555

FileUtil incubator project 1072

FileWriter class 520, 552

fill method

of Arrays 592

of Collections 606, 613

fill method of Arrays 590

fill method of class Graphics2D 483, 486

fill pattern 483

fill texture 483

fill with color 454

fill3DRect method of class Graphics 470, 473

fillArc method of class Graphics 474

filled-in shape 483

filled rectangle 458

filled three-dimensional rectangle 470

fillOval method of class Graphics 471, 473

fillOval method of Graphics 434

fillPolygon method of class Graphics 477, 478

fillRect method of class Graphics 458, 470, 483

fillRoundRect method of class Graphics 472

filter 550

filter stream 550

FilterInputStream class 550

FilterOutputStream class 550

final

keyword 139, 157, 279

local variable 416

variable initialized with a constructor argument 280, 281

variable must be initialized 281

final class 360

final Classes and methods java.sun.com/docs/books/tutorial/java/IandI/final.html 360

final keyword 209, 360, 696, 1053

final state in the UML 89, 149

final value 121

final variable 209

finalize method 273, 273, 276

of Object 334

finally block 494, 500, 506, 724

finally clause 500, 501, 1053

finally keyword 494

find method of class Matcher 1048

fireTableStructureChanged method of AbstractTableModel 820

firewall 956

first-in, first-out (FIFO) data structure 284

first method of SortedSet 625

firstElement method of Vector 604

five-pointed star 484

fixed text 37

in a format string 32

fixed text in a format string 995

fixed-template data 855

fixed-template text 855

flag value 100

flags 995, 1005

Flickr 17

float literal suffix F 618

float primitive type 35, 73, 1053, 1054

promotions 164

Floating Dock demo 1072

Floating Dock Toplevel Window incubator project 1072

floating-point constant 128

floating-point literal 74

floating-point number 73, 100, 101, 103, 618, 997

division 104

double precision 73

double primitive type 73

float primitive type 73

single precision 73

floating-point conversion specifiers 1004

floating-point literal double by default 74

floor method of Math 157

flow of control 96, 103

flow of control in the if...else statement 92

FlowLayout allows components to flow over multiple lines 439

FlowLayout class 391, 438

CENTER constant 442

LEFT constant 442

RIGHT constant 442

setAlignment method 442

flush method of BufferedOutputStream 551

flush method of class Formatter 782

flush method of class ObjectOutputStream 761

focus 394

focus for a GUI application 637, 653

FocusAdapter class 427

FocusListener interface 427

font

manipulation 456

name 465

size 465

style 465

Font class 408, 454, 465

BOLD constant 464, 465

getFamily method 464, 467

getName method 464, 465

getSize method 464, 465

getStyle method 464, 467

isBold method 464, 467

isItalic method 464, 467

isPlain method 464, 467

ITALIC constant 464, 465

PLAIN constant 464, 465

font information 454

font manipulation 456

font metrics 467

ascent 469

descent 469

height 469

leading 469

font style 407

FontMetrics class 454, 467

getAscent method 468

getDescent method 468

getFontMetrics method 467

getHeight method 468

getLeading method 468

for property of a JSF input field 875

for repetition statement 90, 122, 125, 126, 127, 129, 1053

activity diagram 126

example 125

header 123

for statement enhanced 219

forDigit method of class Character 1037

foreign key 795, 797

formal parameter 160

formal type parameter 561

format method

of Formatter 531

of String 254

format method of Formatter 1011

format method of String 1011

format specifier 32, 995

%.2f for floating-point numbers with precision 105

%b for boolean values 145

%d 37

%f 75

%s 32

format specifiers

%% 1003

%B 1003

%b 1002

%c 998

%d 995, 996

%E 998

%e 997

%f 75, 998

%G 998

%g 998

%H 1003

%h 1003

%n 1003

%o 996

%S 999

%s 995, 998

%X 996

%x 996

format string 32, 995, 1005

formatted output 1002 , (comma) formatting flag 129

%f format specifier 75

- (minus sign) formatting flag 129

0 flag 212, 254

aligning decimal points in output 995

boolean values 145

comma (,) formatting flag 129

conversion character 995

date and time compositions 999

date and time conversion suffix characters 999

dates 995

exponential format 995

field width 128, 995

floating-point numbers 75

inserting literal characters 995

integers in hexadecimal format 995

integers in octal format 995

left justification 995

left justify 129

minus sign () formatting flag 129

precision 75, 995

right justification 128, 995

rounding 995

times 995

Formatter class 520, 528, 994, 1011

close method 531

flush method 782

format method 531, 1011

toString method 1011

FormatterClosedException 531

formatting display formatted data 32

Formatting date and time with conversion character t 1001

Formatting output with class Formatter 1011

fragile software 321

Frame class 640

framework 856

frequency method of Collections 606, 617

FROM SQL clause 798

FullStackException class declaration 569

fully qualified class name 64, 165, 287

function 14

function key 434

Future interface 741

get method 741

G

-g command line option to javac 1111

game playing 167

Game programming xxviii game programming 19

garbage collection 678

garbage collector 273, 276, 497, 500

gc method of System 278

general class average problem 100

general path 484

generalities 339

generalization in the UML 374

GeneralPath class 454, 484

closePath method 486

lineTo method 486

moveTo method 486

generic class 567

Generic class Stack declaration 567

Generic class Stack test program 570

generic Classes 557

generic collections xxiii

generic interface 563

generic method 557, 560, 566

Generic method maximum after erasure is performed by the compiler 565

Generic method maximum with an upper bound on its type parameter 564

Generic method printArray after erasure is performed by the compiler 563

generics xxiii, 557, 589

? (wildcard type argument) 583

actual type arguments 561

angle brackets (< and >) 561

bound parameter 563

default upper bound (Object) of a type parameter 569

erasure 562

formal type parameter 561

method 560

parameterized class 567

parameterized type 567

scope of a type parameter 569

type parameter 561

type parameter section 561

type variable 561

upper bound of a type parameter 563, 565

upper bound of a wildcard 583

wildcard type argument 583

wildcard without an upper bound 585

wildcards 581, 583

get a value 68

GET HTTP request 850

get method

of List 595

of Map 629

get method 68, 260, 266

get method of interface Future 741

get method of interface MessageContext 961

get request 852

getAbsolutePath method of File 522

getActionCommand method of ActionEvent 399, 407

getAddress method of class DatagramPacket 771

getAppletContext method of class Applet 750

getAscent method of class FontMetrics 468

getAttribute method of interface HttpSession 961

getAutoCommit method of interface Connection 846

getBlue method of class Color 458, 460

getByName method of class InetAddress 766

getChars method

of class String 1016

of class StringBuilder 1031

getClass method of Object 334, 359, 392

getClassName method of class StackTraceElement 509

getClassName method of class UIManager.LookAndFeelInfo 655

getClickCount method of MouseEvent 430

getColor method of class Color 458

getColor method of class Graphics 458

getColumnClass method of TableModel 814, 819

getColumnClassName method of ResultSetMetaData 819

getColumnCount method of ResultSetMetaData812, 819

getColumnCount method of TableModel 814, 819

getColumnName method of ResultSetMetaData 819

getColumnName method of TableModel 814, 819

getColumnType method of ResultSetMetaData 812

getConnection method of DriverManager 811

getContentPane method of JFrame 419

getData method of class DatagramPacket 771

getDefaultSystemTray method of class System-Tray 1072

getDescent method of class FontMetrics 468

getDesktop method of class Desktop 1069

getEventType method of class HyperlinkEvent 753

getFamily method of class Font 464, 467

getFileName method of class StackTraceElement 509

getFont method of class Graphics 465, 465

getFontMetrics method of class FontMetrics 467

getFontMetrics method of class Graphics 468

getGreen method of class Color 458, 460

getHeight method of class FontMetrics 468

getHostName method of class InetAddress 761

getIcon method of JLabel 393

getInetAddress method of class Socket 761

getInputStream method of class Socket 754, 756

getInstalledLookAnd-Feels method of class UIManager 653

getInstance method of Calendar 1001

getInt method of ResultSet 813

getKeyChar method of KeyEvent 437

getKeyCode method of KeyEvent 437

getKeyModifiersText method of KeyEvent 437

getKeyText method of KeyEvent 437

getLeading method of class FontMetrics 468

getLength method of class DatagramPacket 771

getLineNumber method of class StackTraceElement 509

getLocalHost method of class InetAddress 766, 772

getMaximumSize method of class Component 1056

getMessage method of class Throwable 506

getMethodName method of class StackTraceElement 509

getMinimumSize method of class Component 638, 1056

getModifiers method of InputEvent 437

getName method of 335

getName method of Class 359

getName method of class Font 464, 465

getName method of File 522

getObject method of ResultSet 813, 819

getOptions method of AutoComplete interface 928, 930

getOutputStream method of class Socket 754

getParameter method of class Applet 748

getParent method of File 522

getPassword method of JPasswordField 399

getPath method of File 522

getPoint method of MouseEvent 434

getPort method of class DatagramPacket 771

getPreferredSize method of class Component 638, 1056

getPreferredSize method of class JComponent 660

getProperty method of Properties 629

getRed method of class Color 458, 460

getRequestContext method of interface BindingProvider 972

getResource method of 392

getRow method of ResultSet 819

getRowCount method of TableModel 814, 819

getSelected Index method of JList 419

getSelectedFile method of JFileChooser 555

getSelectedIndex method of JComboBox 417

getSelectedText method of JTextComponent 451

getSelectedValues method of JList 422

getSession method of interface HttpSession 961

getSize method of class Font 464, 465

getSource method of EventObject 399, 410

getStackTrace method of class Throwable 506

getStateChange method of ItemEvent 417

getStyle method of class Font 464, 467

getText method of class JTextComponent 649

getText method of JLabel 393

gettingreal.37signals.com/toc.php 19

getURL method of class HyperlinkEvent 753

getValue method of class JSlider 640

getValueAt method of TableModel 814, 819

getX method of MouseEvent 427

getY method of MouseEvent 427

.gif 392

GIF (Graphics Interchange Format) 392

glass pane 419

GlassFish 941

GlassFish application server Tester web page 943

GlassFish v2 UR2 application server 848, 856, 869

golden mean 187

golden ratio 187

Good Programming Practices overview xxvi Google 17

Google Maps 18

Gosling, James 4

goto elimination 88

goto statement 88

GradeBook class that contains a courseName instance variable and methods to set and get its value 65

GradeBook class using a twodimensional array to store grades 233

GradeBook class using an array to store test grades 224

GradeBook class with a constructor to initialize the course name 71

GradeBook constructor used to specify the course name at the time each GradeBook object is created 72

gradient 482

GradientPaint class 454, 482

graph information 211

graphical modeling language (UML) xxiv

Graphical User Interface (GUI) 373

graphical user interface (GUI) 166, 372, 382

design tool 438

graphics 431

Graphics class 433, 434, 454, 456, 478

clearRect method 470

draw3DRect method 470, 473

drawArc method 474

drawLine method 470

drawOval method 471, 473

drawPolygon method 476, 477, 478

drawPolyline method 476, 478

drawRect method 470, 483

drawRoundRect method 472

drawString method 460

fill3DRect method 470, 473

fillArc method 474

fillOval method 434, 471, 473

fillPolygon method 477, 478

fillRect method 458, 470, 483

fillRoundRect method 472

getColor method 458

getFont method 465, 465

getFontMetrics method 468

setColor method 483

setFont method 465

graphics context 456

graphics in a platform-independent manner 456

Graphics Interchange Format (GIF) 392

Graphics method setFont changes the drawing font 465

Graphics2D class 454, 479, 483, 486

draw method 483

fill method 483, 486

rotate method 486

setPaint method 482

setStroke method 483

translate method 486

greedy quantifier 1046

grid 445

grid for GridBagLayout layout manager 666

Grid Panel JSF component 872

GridBagConstraints class 667, 672

anchor field 667

BOTH constant 667

CENTER constant 667

EAST constant 667

gridheight field 668

gridwidth field 668

gridx field 668

gridy field 668

HORIZONTAL constant 667

instance variables 667

NONE constant 667

NORTH constant 667

NORTHEAST constant 667

NORTHWEST constant 667

RELATIVE constant 672

REMAINDER constant 672

SOUTH constant 667

SOUTHEAST constant 667

SOUTHWEST constant 667

VERTICAL constant 667

weightx field 668

weighty field 668

WEST constant 667

GridBagConstraints constants RELATIVE and REMAINDER 673

GridBagLayout class 662, 666, 668, 672

setConstraints method 672

GridBagLayout layout manager 669

gridheight field of class GridBagConstraints 668

GridLayout class 438, 445

GridLayout containing six buttons 445

gridwidth field of class GridBagConstraints 668

gridx field of class GridBag-Constraints 668

gridy field of class GridBag-Constraints 668

GROUP BY 798

group method of class Matcher 1049

grouper.ieee.org/groups/754/ 1054

GroupLayout 1055

default layout manager in Netbeans 1055

GroupLayout class 1055

BASELINE alignment constant 1056

CENTER alignment constant 1056

groups 1056

LEADING aligning components 1056

LEADING alignment constant 1056

parallel layout of GUI components 1055

recommended GUI design guidelines 1056

sequential horizontal orientation 1055

sequential layout of GUI components 1055

spacing between components 1056

TRAILING alignment constant 1056

GroupLayout.Group class 1056

addGap method 1056

GroupLayout.Parallel-Group class 1056

addGap method 1056

GroupLayout.Sequential-Group class 1056

addGap method 1056

groups in GroupLayout 1056

guard condition in the UML 91, 92, 149

guarding code with a lock 688

GUI (Graphical User Interface) 372, 373

component 382, 383

design tool 438

guide lines (Netbeans) 1058, 1059

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset