did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780782141023

JavaTM 2, J2SETM 1.4 Complete

by
  • ISBN13:

    9780782141023

  • ISBN10:

    0782141021

  • Format: Paperback
  • Copyright: 2002-01-01
  • Publisher: Sybex
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $19.99

Summary

Java 2, J2SE 1.4 Complete is a one-of-a-kind book--valuable both for its broad content and its low price. Whether you are new to Java or are upgrading to J2SE 1.4, you'll get the skills you need to become proficient with the world's most popular programming language. With Java 2, J2SE 1.4 Complete, you'll learn everything you need to know for Java language programming. You'll learn basic programming concepts, such as exception handling, file I/O, and threading, and move on to creating basic Java components. You'll also learn how to create the elements of a graphical user interface, including adding buttons and scrollbars. You'll get an introduction to advanced GUIs, such as Swing and the 2D API. Finally, you'll learn the essentials of JavaBeans programming to create reusable software components. Java 2, J2SE 1.4 Complete introduces you to the work of some of Sybex's finest authors, so you'll know where to go to learn even more about Java. Inside: Java Language Fundamentals * Getting Started with the J2SE 1.4 SDK * Datatypes, Modifiers, and Expressions * Working with Java Objects * Exception Handling and Assertions * Standard Java Packages * File I/O and Streams * Threads and Multithreading Basic Java Components * Handling Java Text Fields * Using Java Buttons and Layout Managers * Working with Radio Buttons * Adding Scrollbars Advanced Java GUIs * Painting * JFC Swing Components * Java 2D API * Custom Components JavaBeans Programming * An Overview of Beans * Bean Properties

Table of Contents

Introduction xvii
Part I Java Language Fundamentals 1(238)
Getting Started with the Java 2 SDK
3(30)
Applets vs. Applications
4(2)
The Java Runtime Environment
4(1)
Applets and Applications: What's the Difference?
5(1)
Working with the Java 2 SDK
6(8)
SDK Tools
7(3)
Downloading and Installing the SDK
10(4)
Creating Java Applications
14(9)
Creating Java Applets
23(7)
HelloWorld Applet
24(6)
What's Next
30(3)
Working with Objects
33(14)
An Introduction to OOP
34(4)
From Objects to Classes
34(2)
Fields and Methods
36(2)
Designing Classes
38(7)
Abstraction
38(1)
Encapsulation
38(1)
Information Hiding
39(1)
Generalization
39(2)
Abstraction, Take 2
41(2)
Association
43(1)
Aggregation
44(1)
UML Resources
45(1)
What's Next
46(1)
Datatypes, Modifiers, and Expressions
47(38)
Comments
48(5)
An Example of Javadoc Comments
50(3)
Keywords
53(1)
Variables
54(1)
Datatypes
55(1)
Literals
56(4)
Initializing Variables with Literals
58(2)
Special Floating-Point Literals
60(1)
Statements and Expressions
60(1)
Operators
61(13)
Arithmetic Operators
63(1)
Relational Operators
64(2)
Boolean Operators
66(2)
Bitwise Operators
68(3)
String Operator
71(1)
Assignment Operators
72(1)
Special Operators
73(1)
Modifiers
74(9)
Storage, Lifetime, and Behavior Modifiers
75(5)
Accessibility Modifiers
80(3)
What's Next
83(2)
Exception Handling and Assertions
85(20)
Exception Handling Constructs in Java
86(5)
The Exception Hierarchy
86(2)
An Example of Exception Handling
88(2)
Common Throwable Methods
90(1)
Managing Methods That Throw Exceptions
91(2)
Throwing Exceptions Yourself
93(1)
Creating Customized Exception Classes
94(1)
Chaining Exceptions
95(1)
Reading a Stack Dump
96(1)
Working with the finally Clause
97(3)
Checking Assertions
100(3)
Using the assert Keyword
100(2)
Enabling Assertion Checking
102(1)
Enabling Runtime Assertion Checking
102(1)
What's Next
103(2)
Standard Java Packages
105(46)
Java Packages and the Class Hierarchy
105(3)
Package java.lang-Main Language Support
108(6)
The Type Wrapper Classes
109(1)
The String Classes
110(1)
The Math Library Class
111(1)
The Multithreading Support Classes
112(1)
The Low-Level System-Access Classes
113(1)
The Error and Exception Classes
114(1)
Package java.util-Utilitarian Language Support
114(7)
The Core Collection Interfaces
116(1)
The Concrete Collection Implementation Classes
117(1)
The Abstract Collection Implementations
118(1)
The Infrastructure Interfaces and Classes
118(1)
The Date and Supporting Classes
119(1)
The Locale and Supporting Classes
119(1)
The BitSet Class
120(1)
The Observer Interface and Observable Class
120(1)
Package java.io-File and Stream I/0 Services
121(5)
The InputStream Class
122(1)
The OutputStream Class
123(1)
The Reader and Writer Classes
124(1)
The RandomAccessFile Class
124(1)
The Stream Tokenizer Class
125(1)
Package java.awt Heart of the Hierarchy
126(13)
GUI Classes
128(5)
The Graphics Classes
133(3)
Geometry Classes
136(1)
Focus Management Classes
137(1)
Printing Support Classes
138(1)
Miscellaneous AWT Classes
138(1)
Package javax.swing
139(6)
JComponent Classes
141(1)
Layout Manager Classes
142(1)
Model Classes and Interfaces
143(1)
Manager Classes
143(1)
AbstractAction and KeyStroke Classes and Action Interface
144(1)
Miscellaneous Swing Classes
144(1)
Package java.net Internet, Web, and HTML Support
145(3)
Package java.applet HTML Embedded Applets
148(1)
Miscellaneous Java Packages
148(2)
What's Next
150(1)
File I/O and Streams
151(32)
An Overview of Streams
151(3)
The Abstract Superclasses
154(4)
The InputStream Class
154(1)
The OutputStream Class
155(1)
The Reader Class
156(2)
The Writer Class
158(1)
The Low-Level Stream Classes
158(3)
The FileInputStream Class
159(1)
The FileOutputStream Class
159(1)
The FileReader Class
160(1)
The FileWriter Class
160(1)
Other Low-Level Stream Classes
161(5)
Stream Classes That Connect to Arrays
162(4)
The High-Level Stream Classes
166(15)
The BufferedInputStream and BufferedOutputStream Classes
166(2)
The DataInputStream and DataOutputStream Classes
168(4)
The LineNumberReader Class
172(1)
The PrintStream and PrintWriter Classes
173(2)
The Pushback Classes
175(3)
The SequencelnputStream Class
178(1)
The InputStreamReader and OutputStreamWriter Classes
179(2)
The Non-Stream Classes
181(1)
The RandomAccessFile Class
181(1)
What's Next
182(1)
Threads and Multithreading
183(56)
Multithreading Basics
184(24)
Creating and Running a Thread
184(2)
The Thread-Control Methods
186(4)
The Thread's Life Cycle
190(2)
Thread Groups
192(1)
Priorities and Scheduling
193(1)
Getting Information about Threads and Thread Groups
194(2)
Running Periodic Tasks
196(3)
Demonstrating Priorities and Timing
199(9)
Advanced Multithreading
208(29)
Thread Synchronization
208(9)
Interthread Communications
217(10)
Thread Local Variables
227(3)
Daemon Threads
230(2)
Pooling Threads
232(5)
Development Patterns
237(1)
What's Next
238(1)
Part II Basic Java Components 239(166)
Handling Java Text Fields
241(12)
Declaring a Text Field
242(3)
Initializing with the init() Method
245(1)
Handling Memory with the new Operator
246(1)
What Are Java Constructors?
247(1)
Overloading Java Methods
247(5)
What's Next
252(1)
Using Java Buttons
253(32)
Working with Buttons in Java
253(16)
Adding a Button to a Program
255(3)
What Are Java Events?
258(2)
The this Keyword
260(1)
Using Button Events
260(9)
How to Handle Multiple Buttons
269(8)
Creating Clickers.java
269(2)
Making Clickers.java Work
271(6)
Handling Java Text Areas
277(7)
Creating Text.java
278(2)
Making Text.java Work
280(4)
What's Next
284(1)
Layout Managers
285(52)
Why Java Uses Layout Managers
286(1)
How Layout Managers Solve the Problem
287(1)
Layout Manager Theory
287(8)
Containers and Components
288(5)
Component Size and Position
293(2)
Layout Policies
295(40)
The Flow Layout Manager
296(3)
The Grid Layout Manager
299(2)
The Border Layout Manager
301(8)
The Card Layout Manager
309(6)
The GridBag Layout Manager
315(20)
What's Next
335(2)
Working with Radio Buttons
337(38)
Building Programs with Radio Buttons
337(12)
The Radios Applet
338(3)
Connecting Check Boxes to a CheckboxGroup
341(8)
Building Programs with Panels
349(8)
Creating a Panel
350(7)
Putting Check Boxes and Radio Buttons Together
357(16)
Creating the Menu Panel
359(1)
Creating the Ingredients Panel
360(1)
Adding Panels to the Sandwich Class
361(3)
Connecting the Buttons in Code
364(9)
What's Next
373(2)
Adding Scroll Bars
375(30)
Adding Scroll Bars to Programs
375(13)
Installing Scroll Bars
378(3)
Connecting Scroll Bars to Code
381(7)
Using Scroll Bars and BorderLayout
388(12)
Working with the ScrollPane Class
400(4)
What's Next
404(1)
Part III Advanced Java GUIs 405(182)
Painting
407(32)
The paint() Method and the Graphics Context
408(18)
Selecting a Color
410(1)
Selecting a Font
411(1)
Drawing and Filling
412(9)
Clipping
421(2)
Painting a Contained Component
423(3)
The GUI Thread and the repaint() Method
426(7)
Spontaneous Painting
427(1)
The repaint() Method
428(5)
Images
433(5)
Double Buffering Using Images
435(3)
Painting Summary
438(1)
What's Next
438(1)
The JFC Swing Components
439(36)
A Sampler of Swing Components
440(9)
JFC Text Fields, Frames, and Menus
441(2)
JFC Tabbed Panes
443(3)
The SwingDemo Class
446(3)
Improved Components
449(7)
JFC Labels
449(1)
JFC Buttons
450(3)
JFC Toggles and Check Boxes
453(3)
New Components
456(8)
JFC Combo Boxes
456(2)
JFC Sliders
458(2)
JFC Password Fields
460(1)
JFC Toolbars
461(1)
JFC Tables
462(2)
The SwingDemo Program
464(9)
What's Next
473(2)
The 2D API
475(52)
The Graphics2D Class and Shapes
477(6)
The Graphics2D Class
277(201)
The Shape Interface and Its Implementors
478(5)
Drawing Operations
483(15)
Stroking
483(5)
Filling
488(4)
Clipping
492(2)
Transforming
494(4)
General Paths for Your Own Curves
498(27)
Specifying a Shape
499(1)
Transforming a General Path
500(4)
Drawing a Bezier Curve
504(4)
Drawing Fractals
508(17)
What's Next
525(2)
Custom Components
527(60)
The Event Delegation Model
528(5)
Listener Interfaces and Methods
529(3)
Explicit Event Enabling
532(1)
Strategies for Designing Custom Components
533(3)
Component Class Subclassing
534(1)
Aggregation
534(1)
Standard Component Subclassing
535(1)
Design Considerations
535(1)
Subclassing Component: The Polar Component
536(20)
Polar's Look-and-Feel Issues
536(3)
Polar's Design Issues
539(11)
The Polar Component Class and Test Applet
550(6)
Aggregation: The ThreeWay Component
556(20)
ThreeWay's Look-and-Feel Issues
557(2)
ThreeWay's Design Issues
559(9)
The ThreeWay Component and Test Applet
568(8)
Subclassing a Standard Component: Validating Text Fields
576(10)
IntTextField's Look-and-Feel Issues
576(1)
IntTextField's Design Issues
576(4)
The IntTextField Component
580(2)
External Validation: The Validating TextField Component
582(1)
Validating Text Fields: Test Applet and Validator Classes
583(3)
What's Next
586(1)
Part IV JavaBeans 587(86)
JavaBeans: An Overview
589(24)
What Does a Bean Boil Down to in Practice?
590(1)
The Black Box View of a Java Bean
591(3)
Bean Methods
592(1)
Bean Properties
593(1)
Bean Events
593(1)
Bean Environments
594(4)
Design-Time Environment
595(1)
Runtime Environment
596(1)
Applet versus Application Environments
597(1)
The Bean Development Kit and the BeanBox Bean Testing Application
598(10)
The BeanBox
599(1)
The BDK Demonstration Beans
600(8)
Package java.beans
608(3)
Class Beans
610(1)
What's Next
611(2)
Bean Properties
613(60)
The SetXXX() and getXXX() Accessor Methods
615(4)
Defining Read-only Properties
615(1)
Defining Write-only Properties
616(1)
Defining Read-Write Properties
617(2)
Bean Property Categories
619(39)
Simple Properties
620(1)
Boolean Properties
620(1)
Indexed Properties
621(1)
Bound Properties
622(19)
Constrained Properties
641(17)
Properties and Multithreading
658(14)
Multithreading Issues with Simple Properties
658(8)
Property Listeners and Multithreading
666(6)
What's Next
672(1)
Appendix The Essential Java 2 API Reference 673(288)
Glossary 961(24)
Index 985

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program