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.

9781576760963

Advanced Java : Internet Applications

by
  • ISBN13:

    9781576760963

  • ISBN10:

    1576760960

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2002-01-01
  • Publisher: Addison Wesley
  • 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: $83.12
We're Sorry.
No Options Available at This Time.

Summary

This book provides an introduction to advanced Java material for readers who already have an introductino to the Java language.State-of-the-art material on Internet applications with Java, including Enterprise JavaBeans, JavaServer Pages, Security, JDBC, Swing, Networking, Servlets, Java 2D, Java 3D, JavaBeans, Internationalization, Concurrent Programming, RMI, Java Media Framework, Collections and the Java Virtual Machine. For those who have programmed in Java and are familiar with its basic constructs.

Table of Contents

Preface xi
Preliminaries
1(62)
Exception Handling
2(6)
Exception Classes
2(1)
The Array Index Out of Bounds Exception
2(4)
The Number Format Exception
6(2)
Input and Output
8(12)
The File Class
8(1)
Reading and Writing Bytes
9(3)
Reading and Writing Primitive Types
12(2)
Reading and Writing Text
14(1)
Random Access Files
15(2)
Reading and Writing Objects
17(3)
Event-Driven Programming
20(9)
The Java Event Model
20(1)
Four Types of Adapters
21(5)
Window Events
26(3)
Introduction to Threads
29(6)
The Thread Class
30(3)
The Runnable Interface
33(2)
Concurrent Programming
35(9)
An Example without Synchronization
35(3)
Synchronization
38(1)
Communication
39(4)
Deadlock
43(1)
Gridbag Layout
44(9)
Default GridBag Constraints
44(2)
Setting Weight and Fill
46(1)
Anchoring and Internal Padding
47(1)
Insets
48(1)
Positioning Constraints
49(2)
The Form Applet
51(2)
Vectors and Enumerations
53(10)
Networking
63(42)
Using a URL to Connect
64(5)
The Uniform Resource Locator (URL)
64(1)
Connecting from an Applet
64(2)
Connecting from a Standalone Application
66(3)
Protocols with a URL Connection
69(8)
The Hypertext Transfer Protocol (HTTP)
69(2)
Using a URL Connection
71(6)
Clients and Servers Using Sockets
77(8)
Server Ports
77(1)
A Client-Server Example
78(3)
A Request Header Server
81(4)
Browsers and Web Servers
85(9)
A Very Simple Browser
85(2)
A Very Simple Web Server
87(3)
A Threaded Web Server
90(4)
Remote Method Invocation (RMI)
94(11)
Distributed Computing: The RMI Solution
94(2)
The Interface
96(1)
The Server
97(2)
The Client
99(6)
Java Database Connectivity (JDBC)
105(54)
Database Tables and SQL Queries
106(7)
Relational Database Tables
106(2)
Structured Query Language (SQL)
108(5)
Connecting to a Database
113(10)
Database and Application Servers
113(1)
A JDBC Driver
114(1)
Creating an ODBC Data Source
114(2)
Connecting from Java
116(3)
Building the Database
119(4)
Retrieving Information
123(5)
Viewing Query Results
123(1)
SELECT Statement Options
123(5)
Metadata and Aggregate Functions
128(7)
Database Metadata
128(1)
Result Set Metadata
129(1)
Aggregate Functions
130(5)
Prepared Statements and Transactions
135(7)
Using Prepared Statements
135(2)
Transaction Processing
137(5)
A GUI for Database Queries
142(17)
The List Component
146(13)
Servlets and JavaServer Pages™
159(38)
A First Servlet
160(4)
Servlets with the JSWDK or JRun
160(1)
Generic Servlets
161(2)
Using the Web Server
163(1)
HTML Forms
164(7)
GET Requests
164(2)
POST requests
166(5)
Server-Side Includes and Servlet Chaining
171(8)
Server-Side Includes
171(4)
Servlet Chaining
175(4)
Three-tiered Architectures
179(4)
using a Database in a Three-tiered Architecture
179(4)
Session Tracking
183(4)
JavaServer Pages (JSP)
187(10)
Getting Started with JSP
187(2)
A JSP Response to a Form
189(2)
JSP and JavaBeans Components
191(6)
Swing
197(40)
Getting Started with Swing
198(9)
The Swing Classes
198(1)
Converting an AWT Applet to Swing
199(3)
Text Components and Labels
202(1)
A Swing Application with Look and Feel Demo
203(4)
Images, Buttons and Borders
207(7)
Images
207(1)
Buttons
208(1)
Borders
208(4)
Automatic Double Buffering
212(2)
Lists and Toggle Buttons
214(7)
Lists
214(1)
Scroll Panes
215(1)
Checkboxes
215(3)
Radio Buttons
218(1)
Combo Boxes
218(3)
Menus and Dialogs
221(7)
Menus
221(1)
Dialogs
221(7)
Tabs and Tables
228(9)
Tabbed Panes
228(2)
Tables
230(7)
Java 2D™
237(40)
Geometry
238(12)
Points
238(1)
Shapes
238(5)
Rectangular Shapes
243(3)
Combining Shapes
246(4)
Rendering
250(12)
Transformations
250(4)
Painting
254(3)
Stroking
257(3)
Clipping
260(2)
Text
262(6)
Attributes
263(3)
Painting and Transforming
266(2)
Printing
268(9)
Graphics
268(3)
Printing a File
271(6)
Internationalization
277(36)
Locales and Encodings
278(7)
Locales
278(3)
Encodings
281(4)
Number, Currency, Percent, Date, and Time Formatting
285(6)
Numbers
285(3)
Dates
288(3)
Collation
291(6)
Localizing User Interfaces
297(10)
Property Files
298(5)
Property classes
303(4)
Message Formatting
307(6)
Multimedia
313(38)
Animation
313(8)
Double Buffering
314(3)
Animating Text
317(2)
Using Multiple Images
319(2)
Sound
321(4)
The Java Media Framework
325(4)
Java 3D Basics
329(11)
A Scene Graph
329(2)
A Cube
331(1)
Transforms
332(3)
Shapes
335(2)
Colors
337(3)
Java 3D Light, Motion, and Texture
340(11)
Light
340(2)
Motion
342(3)
Texture
345(6)
Java Beans
351(36)
Building with Beans
352(5)
Starting the BeanBox
353(1)
Building an Applet with Beans
353(4)
Bound and Constrained Properties
357(4)
Simple Properties
358(1)
Bound Properties
358(1)
Constrained Properties
359(2)
Writing and Packaging a Bean
361(10)
A Simple Bean
361(1)
JAR Files
362(2)
A Bean with a Bound Property
364(2)
Smiley Bean
366(1)
Anonymous Inner Classes
367(4)
Using BeanInfo
371(7)
What Is Bean Info?
371(1)
Friendly Bean
372(2)
BeanInfo for Friendly
374(3)
Packaging Friendly
377(1)
Programming with Beans
378(9)
Using Beans in an Applet
378(3)
Customizing Beans
381(6)
Enterprise JavaBeans™
387(34)
Getting Started with EJB
388(6)
The J2EE Architecture
388(1)
A J2EE Server
389(1)
Hello Bean
389(2)
The Hello Application
391(1)
Deploying the Hello Application
392(2)
Entity Beans
394(10)
The Remote Interface
395(1)
The Home Interface
395(1)
The Entity Bean (Container-Managed)
396(2)
Transactions
398(1)
Deploying and Entity Bean
399(2)
A Customer Client
401(3)
Session Beans
404(5)
A Stateful Session Bean
404(2)
Deploying the Agent Bean
406(1)
A Sales Client
407(2)
Servlet and JSP clients
409(12)
A Servlet Client
409(5)
A JSP Client
414(7)
Collections
421(36)
The Collection Interfaces and Classes
422(7)
The Collection Interface
422(1)
Sets
423(2)
Iterators
425(4)
Lists
429(7)
Implementations
430(6)
Maps
436(7)
Implementations
437(6)
Comparisons and Ordering
443(9)
Inheriting From Object
443(3)
Overriding Object Methods
446(2)
The Comparable Interface
448(2)
Sorted Sets and Maps
450(2)
Algorithms
452(5)
Security and the Java Virtual Machine
457(40)
Using a Security Manager
458(5)
Properties
458(1)
The Security Manager
459(3)
The Java Plug-in
462(1)
Policies and Permissions
463(7)
Policy Files
464(2)
Codebase Permissions
466(1)
Digital Signatures
466(4)
The Java Virtual Machine
470(10)
The Structure of a Class File
480(17)
Using A Disassembler
481(2)
Reading the Class File
483(14)
XML
497(40)
XML and Information
498(6)
The Limitations of HTML
498(1)
XML Syntax
499(1)
A Document Type Definition
500(2)
Valid Documents
502(2)
SAX Processing
504(7)
Using a SAX Parser
504(5)
Using a Validating Parser
509(2)
DOM Processing
511(7)
Building a DOM Tree from an XML File
512(2)
Checking for Well-Formed and Valid Documents
514(1)
Building a DOM Tree from Data
515(3)
XSLT
518(10)
Stylesheets
518(3)
A Stylesheet for the Author Document
521(3)
Using a Stylesheet
524(4)
Simple Object Access Protocol (SOAP)
528(9)
A SOAP Message
528(3)
Calling a Method with Arguments
531(2)
Using the SOAP API
533(4)
Programming Mobile Devices
537(36)
MIDP Programming Basics
538(4)
The CLDC Classes
538(1)
The MIDP Classes
538(1)
Installing the J2ME
538(1)
Hello World on a Cell Phone
539(3)
User Interfaces
542(9)
Trying a Form
542(3)
Trying a List
545(5)
Packaging MIDlets
550(1)
Making Connections
551(7)
A Stream Connection
551(2)
An HttpConnection
553(5)
Persistent Storage
558(9)
Using a Byte Array
558(1)
A Record Store
559(1)
A RecordFilter
560(1)
A RecordComparator
560(1)
A Record Enumeration
560(7)
Low-Level Events
567(6)
Graphics
567(1)
Canvas
567(6)
Jini and JavaSpaces™
573(40)
Multicasting and Jini
574(5)
Jini Discovery
574(1)
UDP
574(3)
Multicasting
577(2)
Starting Jini
579(13)
An HTTP Server
580(1)
The RMI Activation Daemon
580(1)
A Lookup Service
580(1)
A Jini Service
581(4)
A Jini Client
585(3)
Using Events
588(4)
Interacting with a Service
592(11)
Using Sockets to Connect to a Jini Service
592(5)
Using RMI to Execute Service Methods
597(6)
JavaSpaces
603(10)
Entries
603(1)
Starting JavaSpaces
604(1)
Distributed Computing with JavaSpaces
605(8)
JSP Tags
613(24)
Simple Tags
613(7)
Configuring a Tag
614(3)
Using an Attribute
617(3)
Body Tags
620(7)
Including the Body
620(2)
Using the Body
622(2)
Repeating the Body
624(3)
Nested Tags and Script Variables
627(4)
A Nested Tag
627(2)
A Script Variable
629(2)
The Jakarta Tag Library
631(6)
Using the DBTags Library
632(5)
Messaging and Naming
637(20)
Publish-and-Subscribe Messaging
638(6)
Message Types
638(1)
Administering a JMS Server
638(1)
Creating a Publisher
639(2)
Creating Subscribers
641(1)
Compiling and Running the Clients
642(2)
Point-to-Point Messaging
644(4)
Creating a Receiver
644(1)
Creating a Sender
645(3)
Message-Driven Beans
648(9)
Creating a Message-Driven Bean
648(1)
Deployment
649(2)
The Java Naming and Directory Interface™
651(6)
Appendix A---Mouse and Key Events 657(10)
Appendix B---The ASCII Character Set 667(1)
Appendix C---Some HTML Tags 668(1)
Appendix D---Javadoc 669(4)
Answers to Odd-Numbered Test Your Understanding Exercises 673(12)
Index 685

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