Skip to content

Java Black Book : The Java Book Programmers Turn to First

Best in textbook rentals since 2012!

ISBN-10: 1576105318

ISBN-13: 9781576105313

Edition: 1st 2000

Authors: Steven Holzner

List price: $49.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Customers also bought

Book details

List price: $49.99
Edition: 1st
Copyright year: 2000
Publisher: Coriolis Group, LLC, The
Binding: Paperback
Pages: 1200
Size: 7.50" wide x 9.25" long x 2.50" tall
Weight: 4.290
Language: English

Introductionp. xxvii
Essential Javap. 1
All About Javap. 3
Getting And Installing Javap. 11
What Was New In Java 1.1?p. 12
What Was Deprecated In Java 1.1?p. 14
What's New In Java 2?p. 14
What Was Deprecated In Java 2?p. 17
Writing Code: Creating Code Filesp. 17
Writing Code: Knowing Java's Reserved Wordsp. 18
Writing Code: Creating An Applicationp. 20
Compiling Codep. 24
Cross-Compilation Optionsp. 27
Compiling Code: Using Command-Line Optionsp. 25
Compiling Code: Checking For Deprecated Methodsp. 27
Running Codep. 28
Running Code: Using Command-Line Optionsp. 31
Basic Skills: Commenting Your Codep. 33
Basic Skills: Importing Java Packages And Classesp. 35
Basic Skills: Finding Java Classes With Classpathp. 38
Creating Appletsp. 41
Running Appletsp. 43
Creating Windowed Applicationsp. 44
Running Windowed Applicationsp. 46
Designing Java Programsp. 46
Distributing Your Java Programp. 49
Variables, Arrays, And Stringsp. 51
Variablesp. 53
Arraysp. 56
Stringsp. 59
What Data Types Are Available?p. 61
Creating Integer Literalsp. 62
Creating Floating-Point Literalsp. 64
Creating Boolean Literalsp. 65
Creating Character Literalsp. 66
Creating String Literalsp. 67
Declaring Integer Variablesp. 68
Declaring Floating-Point Variablesp. 69
Declaring Character Variablesp. 70
Declaring Boolean Variablesp. 72
Initializing Variablesp. 73
Converting Between Data Typesp. 75
Declaring One-dimensional Arraysp. 79
Creating One-dimensional Arraysp. 80
Initializing One-dimensional Arraysp. 81
Declaring Multidimensional Arraysp. 81
Creating Multidimensional Arraysp. 82
Initializing Multidimensional Arraysp. 85
Creating Irregular Multidimensional Arraysp. 86
Getting An Array's Lengthp. 86
The String Classp. 87
Creating Stringsp. 92
Getting String Lengthp. 95
Concatenating Stringsp. 95
Getting Characters And Substringsp. 96
Searching For And Replacing Stringsp. 98
Changing Case In Stringsp. 99
Formatting Numbers In Stringsp. 100
The StringBuffer Classp. 101
Creating StringBuffersp. 101
Getting And Setting StringBuffer Lengths And Capacitiesp. 105
Setting Characters In StringBuffersp. 106
Appending And Inserting Using StringBuffersp. 106
Deleting Text In StringBuffersp. 107
Replacing Text In StringBuffersp. 108
Operators, Conditionals, And Loopsp. 109
Operatorsp. 110
Conditionalsp. 112
Loopsp. 113
Operator Precedencep. 116
Incrementing And Decrementing: ++ And --p. 117
Unary Not: And!p. 120
Multiplication And Division: * And/p. 121
Modulus: %p. 122
Addition And Subtraction: + And -p. 122
Shift Operators: ]], ]]], And [[p. 123
Relational Operators: ], ]=, [, [=, ==, And !=p. 124
Bitwise And Bitwise Logical And, Xor, And Or: and, ^, And Ip. 125
Logical andand And IIp. 128
The If-Then-Else Operator: ?:p. 130
Assignment Operators: = And [operator]=p. 131
Using The Math Classp. 133
Comparing Stringsp. 135
The if Statementp. 136
The switch Statementp. 139
The while Loopp. 142
The do-while Loopp. 145
The for Loopp. 146
Nested Loopsp. 150
Using The break Statementp. 151
Using The continue Statementp. 152
Object-Oriented Programmingp. 155
Classesp. 158
Objectsp. 159
Data Membersp. 159
Methodsp. 160
Inheritancep. 161
Declaring And Creating Objectsp. 163
Declaring And Defining Classesp. 167
Creating Instance Variablesp. 170
Setting Variable Accessp. 171
Creating Class Variablesp. 173
Creating Methodsp. 175
Setting Method Accessp. 176
Passing Parameters To Methodsp. 178
Command-line Arguments Passed To mainp. 180
Returning Values From Methodsp. 181
Creating Class Methodsp. 183
Creating Data Access Methodsp. 184
Creating Constructorsp. 186
Passing Parameters To Constructorsp. 187
A Full Class Examplep. 188
Understanding Variable Scopep. 191
Using Recursionp. 192
Garbage Collection And Memory Managementp. 194
Garbage Collection And The finalize Methodp. 196
Overloading Methodsp. 197
Overloading Constructorsp. 199
Passing Objects To Methodsp. 201
Passing Arrays To Methodsp. 203
Using The this Keywordp. 205
Returning Objects From Methodsp. 206
Returning Arrays From Methodsp. 207
Inheritance, Inner Classes, And Interfacesp. 209
Why Inheritance?p. 211
Why Interfaces?p. 212
Why Inner Classes?p. 213
Creating A Subclassp. 215
Access Specifiers And Inheritancep. 216
Calling Superclass Constructorsp. 219
Creating Multilevel Inheritancep. 224
Handling Multilevel Constructorsp. 226
Overriding Methodsp. 228
Accessing Overridden Membersp. 229
Using Superclass Variables With Subclassed Objectsp. 231
Dynamic Method Dispatch (Runtime Polymorphism)p. 234
Creating Abstract Classesp. 237
Stopping Overriding With finalp. 238
Stopping Inheritance With finalp. 240
Creating Constants With finalp. 241
Is-a Vs. Has-a Relationshipsp. 242
The Java Object Classp. 243
Using Interfaces For Multiple Inheritancep. 247
Creating Inner Classesp. 250
Creating Anonymous Inner Classesp. 251
AWT: Applets, Applications, And Event Handlingp. 253
The Abstract Windowing Toolkitp. 255
Appletsp. 256
Applicationsp. 257
Handling Eventsp. 258
Using The Abstract Windowing Toolkitp. 259
Creating Appletsp. 269
Using The [Applet] HTML Tagp. 271
Handling Non-Java Browsersp. 274
Embedding [Applet] Tags In Codep. 274
Using The init, start, stop, destroy, paint, And update Methodsp. 275
Drawing Graphics In Appletsp. 277
Using The Java Browser Plug-Inp. 278
Reading Parameters In Appletsp. 280
Using Java Consoles In Browsersp. 281
Adding Controls To Applets: Text Fieldsp. 282
Adding Controls To Applets: Buttonsp. 284
Handling Eventsp. 285
Using Adapter Classesp. 294
Using Anonymous Inner Adapter Classesp. 296
Creating Windowed Applicationsp. 297
Exiting An Application When Its Window Is Closedp. 300
Applications You Can Run As Appletsp. 302
AWT: Text Fields, Buttons, Check Boxes, Radio Buttons, And Layoutsp. 305
Text Fieldsp. 306
Buttonsp. 306
Check Boxesp. 306
Radio Buttonsp. 307
Layoutsp. 307
Using Text Fieldsp. 309
Using Labelsp. 312
Using Buttonsp. 314
Using Check Boxesp. 318
Using Radio Buttonsp. 323
Flow Layoutsp. 325
Grid Layoutsp. 329
Using Panelsp. 332
Border Layoutsp. 335
Card Layoutsp. 338
Grid Bag Layoutsp. 342
Using Insets And Paddingp. 348
Creating Your Own Layout Managerp. 351
AWT: Lists, Choices, Text Areas, Scrollbars, And Scroll Panesp. 353
Listsp. 354
Choicesp. 354
Text Areasp. 355
Scrollbarsp. 355
Scroll Panesp. 355
Using Text Areasp. 356
Replacing Text In Text Areasp. 359
Searching For And Selecting Text In Text Areasp. 361
Using Listsp. 364
Using Multiple Selection Listsp. 369
Using Choice Controlsp. 372
Using Scrollbarsp. 377
Scrollbars And Border Layoutsp. 384
Using Scroll Panesp. 387
AWT: Graphics, Images, Text, And Fontsp. 393
Graphicsp. 394
Imagesp. 394
Text And Fontsp. 394
The Keyboard And Mousep. 395
Using The Mousep. 396
Using The Keyboardp. 400
Using Fontsp. 404
Using Imagesp. 412
Resizing Imagesp. 415
Drawing Graphicsp. 417
Selecting Colorsp. 428
Using Canvasesp. 431
Using The ImageObserver Interfacep. 434
Using The MediaTracker Classp. 436
Working Pixel By Pixel: The PixelGrabber And MemoryImageSource Classesp. 439
Brightening Imagesp. 443
Converting Images To Grayscalep. 445
Embossing Imagesp. 447
AWT: Windows, Menus, And Dialog Boxesp. 449
Windowsp. 450
Menusp. 451
Dialog Boxesp. 451
Creating Frame Windowsp. 452
Showing And Hiding Windowsp. 454
Handling Window Eventsp. 457
Automatically Hiding Windows Upon Closingp. 460
Using The Window Classp. 461
Creating Menusp. 466
Creating A MenuBar Objectp. 469
Creating Menu Objectsp. 470
Creating Menultem Objectsp. 472
Handling Menu Eventsp. 475
More Menu Optionsp. 477
Adding Menu Separatorsp. 480
Disabling Menu Itemsp. 481
Adding Check Marks To Menusp. 482
Creating Submenusp. 485
Pop-up Menusp. 487
Dialog Boxesp. 490
File Dialog Boxesp. 495
Swing: Applets, Applications, And Pluggable Look And Feelp. 499
The Java Foundation Classesp. 500
Swingp. 501
Heavyweight Versus Lightweight Componentsp. 503
Swing Featuresp. 504
Graphics Programming Using Panesp. 505
Model View Controller Architecturep. 506
Working With Swingp. 507
Preparing To Create A Swing Appletp. 511
Understanding Root Panesp. 514
Understanding Layered Panesp. 516
Understanding Content Panesp. 518
Creating A Swing Appletp. 519
Creating A Swing Applicationp. 522
Closing JFrame Windowsp. 526
Selecting Component Bordersp. 528
Setting The Pluggable Look And Feelp. 532
Setting The Pluggable Look And Feel For Componentsp. 537
Swing: Text Fields, Buttons, Toggle Buttons, Check Boxes, And Radio Buttonsp. 541
Labels And Text Fieldsp. 542
Buttonsp. 542
Toggle Buttonsp. 542
Check Boxes And Radio Buttonsp. 543
Using Labelsp. 544
Using Image Iconsp. 547
Using Images In Labelsp. 549
Using Text Fieldsp. 550
Abstract Button: The Foundation Of Swing Buttonsp. 553
Using Buttonsp. 558
Displaying Images In Buttonsp. 561
Using Rollover And Disabled Imagesp. 563
Default Buttons And Mnemonicsp. 565
Using Toggle Buttonsp. 567
Creating Toggle Button Groupsp. 569
Using Check Boxesp. 571
Using Radio Buttonsp. 574
Using Check Box And Radio Button Imagesp. 577
Getting And Setting The State Of Check Boxes And Radio Buttonsp. 579
Swing: Viewports, Scrolling, Sliders, And Listsp. 583
Viewportsp. 584
Scroll Panesp. 584
Slidersp. 584
Scroll Barsp. 585
Listsp. 585
Handling Viewportsp. 586
Creating Scroll Panesp. 592
Creating Scroll Pane Headers And Bordersp. 597
Scrolling Imagesp. 598
Creating Slidersp. 600
Filling A Sliderp. 605
Painting Slider Tick Marksp. 606
Painting Slider Labelsp. 607
Setting The Slider Extentp. 608
Creating Scroll Barsp. 609
Creating Listsp. 614
Handling Multiple List Selectionsp. 620
Displaying Images In Listsp. 622
Creating A Custom List Modelp. 623
Creating A Custom List Cell Rendererp. 624
Handling Double-Clicks In Listsp. 625
Swing: Combo Boxes, Progress Bars, Tooltips, Separators, And Choosersp. 629
Combo Boxesp. 630
Progress Barsp. 630
Choosersp. 631
Tooltipsp. 631
Separatorsp. 631
Creating Combo Boxesp. 632
Handling Combo Box Selection Eventsp. 637
Creating Editable Combo Boxesp. 640
Adding Images To Combo Boxesp. 642
Creating A Combo Box Modelp. 644
Creating A Combo Box Custom Rendererp. 645
Creating Progress Barsp. 646
Updating Progress Barsp. 650
Handling Progress Bar Eventsp. 652
Creating Tooltipsp. 654
Creating Separatorsp. 656
Resizing Separators Automaticallyp. 659
Creating Color Choosersp. 661
Creating File Choosersp. 665
Creating File Chooser Filtersp. 673
Swing: Layered Panes, Tabbed Panes, Split Panes, And Layoutsp. 677
Layered Panesp. 678
Tabbed Panesp. 678
Split Panesp. 679
Layoutsp. 679
Understanding Swing Components And ZOrderp. 680
Making Swing Components Transparentp. 682
Using Layered Panesp. 685
Creating Tabbed Panesp. 688
Specifying Tab Placement in Tabbed Panesp. 694
Using Split Panesp. 696
Making Split Panes One-Touch Expandablep. 701
Setting Split Pane Orientationp. 703
Setting Split Pane Divider Sizep. 705
Using The Box Layout Managerp. 706
Using The Box Classp. 709
Using The Overlay Layout Managerp. 714
Swing: Menus And Toolbarsp. 717
Menusp. 718
Toolbarsp. 718
Creating A Menu Barp. 719
Creating A Menup. 721
Creating A Menu Itemp. 724
Creating A Basic Menu Systemp. 726
Adding Images To Menusp. 731
Creating Check Box Menu Itemsp. 733
Creating Radio Button Menusp. 736
Creating Submenusp. 739
Creating Menu Accelerators And Mnemonicsp. 741
Enabling/Disabling Menu Items And Changing Captions At Runtimep. 744
Adding And Removing Menu Items At Runtimep. 746
Adding Buttons And Other Controls To Menusp. 749
Creating Pop-up Menusp. 750
Creating Toolbarsp. 755
Adding Combo Boxes And Other Controls To Toolbarsp. 759
Swing: Windows, Desktop Panes, Inner Frames, And Dialog Boxesp. 763
Windowsp. 764
Dialog Boxesp. 764
Creating A Windowp. 765
Creating A Frame Windowp. 769
Creating A Desktop Panep. 771
Creating Internal Framesp. 773
Using JOptionPane To Create Dialog Boxesp. 781
Creating Option Pane Confirmation Dialog Boxesp. 788
Creating Option Pane Message Dialog Boxesp. 790
Creating Option Pane Text Field Input Dialog Boxesp. 792
Creating Option Pane Combo Box Input Dialog Boxesp. 794
Creating Option Pane Internal Frame Dialog Boxesp. 796
Creating Dialog Boxes With JDialogp. 798
Getting Input From Dialog Boxes Created With JDialogp. 802
Swing: Tables And Treesp. 805
Tablesp. 806
Treesp. 806
Creating Tablesp. 808
Adding Rows And Columns To Tables At Runtimep. 822
Adding Controls And Images To Tablesp. 826
Creating Treesp. 829
Adding Data To Treesp. 838
Handling Tree Eventsp. 840
Editing Tree Nodesp. 842
Swing: Text Componentsp. 845
Text Fieldsp. 846
Password Fieldsp. 846
Text Areasp. 846
Editor Panesp. 847
Text Panesp. 847
Creating Swing Text Components: The JTextComponent Classp. 848
Creating Text Fieldsp. 852
Setting Text Field Alignmentp. 853
Scrolling Text Fieldsp. 855
Creating Password Fieldsp. 858
Creating Text Areasp. 861
Creating Editor Panesp. 864
Using HTML In Editor Panesp. 869
Adding Hyperlinks To Editor Panesp. 872
Using RTF Files In Editor Panesp. 875
Creating Text Panesp. 876
Inserting Images And Controls Into Text Panesp. 879
Setting Text Pane Text Attributesp. 880
I/O Streams And Filesp. 885
Streams, Readers, And Writersp. 886
Using The File Classp. 888
Working With InputStreamp. 892
Working With OutputStreamp. 893
Working With FileInputStreamp. 893
Working With FileOutputStreamp. 896
Working With ByteArrayInputStreamp. 898
Working With ByteArrayOutputStreamp. 900
Working With BufferedInputStreamp. 902
Working With BufferedOutputStreamp. 905
Working With RandomAccessFilep. 906
Working With Readerp. 908
Working With Writerp. 909
Keyboard Input: Working With InputStreamReaderp. 910
Working With OutputStreamWriterp. 912
Working With FileReaderp. 913
Working With FileWriterp. 914
Working With CharArrayReaderp. 915
Working With CharArrayWriterp. 917
Working With BufferedReaderp. 918
Working With BufferedWriterp. 920
Working With PushbackReaderp. 921
Working With StreamTokenizerp. 922
Working With Serializationp. 924
Working With The Clipboardp. 929
Working With The Printerp. 930
Collectionsp. 931
The Collection Interfacesp. 932
The Collection Classesp. 932
The Map Interfacesp. 933
The Map Classesp. 933
Using The Collection Interfacep. 934
Using The List Interfacep. 935
Using the Set Interfacep. 936
Using The SortedSet Interfacep. 937
Using The AbstractCollection Classp. 937
Using The AbstractList Classp. 938
Using The AbstractSequentialList Classp. 940
Using The ArrayList Classp. 940
Using The LinkedList Classp. 943
Using The HashSet Classp. 946
Using The TreeSet Classp. 947
Using The Comparator Interfacep. 949
Using The Iterator Interfacep. 951
Using The Listlterator Interfacep. 953
Using The AbstractMap Classp. 955
Using The HashMap Classp. 956
Using The TreeMap Classp. 958
Using The Arrays Classp. 959
Using The Enumeration Interfacep. 963
Using The Vector Classp. 964
Using The Stack Classp. 968
Using The Dictionary Classp. 970
Using The Hashtable Classp. 970
Using The Properties Classp. 973
Multithreaded Programming And Animationp. 975
Using Threads In Javap. 976
Getting The Main Threadp. 978
Naming A Threadp. 978
Pausing A Threadp. 979
Creating A Thread With The Runnable Interfacep. 980
Creating A Thread With The Thread Classp. 982
Creating Multiple Threadsp. 986
Waiting For (Joining) Threadsp. 988
Checking Whether A Thread Is Alivep. 990
Setting Thread Priority And Stopping Threadsp. 992
Why Use Synchronization?p. 994
Synchronizing Code Blocksp. 996
Synchronizing Methodsp. 998
Communicating Between Threadsp. 999
Suspending And Resuming Threadsp. 1002
Creating Graphics Animation With Threadsp. 1004
Eliminating Flicker In Graphics Animationp. 1006
Suspending And Resuming Graphics Animationp. 1008
Double Bufferingp. 1011
Creating Packages, Interfaces, JAR Files, And Java Beansp. 1013
Creating Packages And Interfacesp. 1014
JAR Filesp. 1014
Java Beansp. 1014
Creating A Packagep. 1017
Creating Packages That Have Subpackagesp. 1018
Creating An Interfacep. 1019
Partially Implementing An Interfacep. 1020
Creating A JAR Filep. 1022
Getting The Contents Of A JAR Filep. 1024
Extracting Files From A JAR Filep. 1024
Updating JAR Filesp. 1025
Reading From JAR Files In Codep. 1025
Using javac To Get Classes From JAR Filesp. 1029
Letting Applets Get Classes From JAR Filesp. 1030
Designing Programs Using Java Beansp. 1031
Creating Applets That Use Java Beansp. 1034
Creating A Java Beanp. 1036
Creating A Bean Manifest Filep. 1038
Creating A Bean Jar Filep. 1039
Using A New Beanp. 1039
Adding Controls To Beansp. 1040
Giving A Bean Propertiesp. 1043
Creating Bound Propertiesp. 1052
Giving A Bean Methodsp. 1052
Giving A Bean An Iconp. 1055
Exception Handling, Debugging, And Networkingp. 1057
Exception Handingp. 1058
Debuggingp. 1059
Networkingp. 1059
Catching An Exceptionp. 1061
Nesting try Statementsp. 1065
Throwing Exceptionsp. 1065
Creating A Custom Exceptionp. 1066
Debugging Java Programsp. 1068
Setting Applet Security Policiesp. 1071
Using URL Objectsp. 1074
Using URLConnection Objectsp. 1076
Creating And Using Socketsp. 1080
Creating TCP Clients And Serversp. 1083
Submitting An HTML Form From Javap. 1085
Using Java Database Connectivity (JDBC)p. 1087
Creating Java Servletsp. 1099
Indexp. 1105
Table of Contents provided by Syndetics. All Rights Reserved.