Web Programming With Visual J++
Mike Cohn, Sams ISBN:1575211742, Edition: , 1997-02 Price: $39.99
Web Programming with Visual J++
by Mike Cohn, Jay Rutten, and James Jory
CONTENTS
Introduction
- Who Should Buy This Book?
- What's in This Book?
Chapter 1 Web Programming and Visual J++
- Why Web Programming?
- Passive and Static Content
- Dependence on Browser Capabilities
- Why Java?
- Active and Dynamic Content
- Browser, Hardware, and Operating System Independence
- Java Is a General Purpose Language
- Key Features of Java
- Why Visual J++?
- The Developer Studio
- The Applet Wizard
- The JView Stand-Alone Interpreter
- Editing Resources
- The Debugger
- Summary
Chapter 2 Creating Your First Applet with Applet Wizard
- Saying "Hello, World" Visual J++ Style
- Create a New Project Workspace
- Start the Applet Wizard
- Set the Applet Wizard Options
- Generate the Skeleton Project
- Set Project Settings
- Add the Hello World Message
- Build and Execute the Applet
- Examining the Source Code
- The Applet Class
- The Frame Class
- The Host HTML File
- Seeing What the Wizard Can Do
- Summary
Chapter 3 Using the Developer Studio
- What Is the Developer Studio?
- Understanding Workspaces
- Working with FileView
- Working with ClassView
- Adding Variables, Methods, and Classes
- Working with InfoView
- Working with Projects
- Configuring Projects
- Working with Subprojects
- Setting the Default Project
- Removing a Project
- Summary
Chapter 4 Applet Programming Fundamentals
- The Applet Class
- The Life and Death of an Applet
- Event Handling
- The Component Class
- The Event Class
- Handling Any Event
- Event Handling for the Mouse
- Keyboard Event Handling
- Using Applet Parameters
- Embedding Parameters in HTML
- Reading Applet Parameters
- Working with URLs and Graphics
- Accessing a URL
- An Example of Displaying an Image
- Summary
Chapter 5 Java's User Interface Components
- Elements of an Applet's Interface
- Everything Is a Component
- Buttons
- Text Fields and Areas
- Labels
- Checkboxes and Checkbox Groups
- Lists and Choices
- Scrollbars
- Laying Out Controls
- Layout Managers and the Resource Wizard
- FlowLayout
- BorderLayout
- CardLayout
- GridLayout
- GridBagLayout
- Summary
Chapter 6 Working with Frames, Dialogs, and Menus
- Containers
- The Panel Class
- The Window Class
- Frames
- Dialogs
- FileDialog
- Menus
- The MenuBar Class
- The Menu Class
- The MenuItem Class
- An Example of Adding a Menu to a Frame
- Summary
Chapter 7 Saving Time with the Resource Wizard
- The Easy Way
- Overview of the Resource Wizard
- Using the Resource Wizard to Create Containers
- The Control Creator Class
- The DialogLayout Class
- One-Way Code Generation
- A Step-by-Step Example
- Using Control Creator Classes on Dialogs
- Using the Resource Wizard to Create Menus
- A Step-by-Step Menu Example
- Summary
Chapter 8 Debugging with the Visual J++ Debugger
- Controlling the Execution
- Successful Build
- Breakpoints
- Where Do You Go from Here?
- What Do You See?
- Exceptions
- Threads
- Summary
Chapter 9 Documenting Your Visual J++ Code
- Overview
- Adding JavaDoc Comments
- Documenting Classes
- Documenting Methods
- Enhancing Your Documentation with HTML
- An Example
- Summary
Chapter 10 Working with Java Strings
- The String Class
- Constructing New Strings
- Basic String Methods
- Converting Variables to Strings
- Using Only Part of a String
- Comparing Strings
- Searching Strings
- The StringBuffer Class
- Useful StringBuffer Methods
- Appending
- Inserting
- Summary
Chapter 11 The Java Utility Classes
- The BitSet Class
- The Date Class
- The Hashtable Class
- The Properties Class
- The Random Class
- Observers and Observables
- The Observable Class
- The Observer Interface
- An Example
- The Vector Class
- The Stack Class
- The StringTokenizer Class
- Summary
Chapter 12 Moving Up to Multithreading
- Threads
- Runnable and Threads
- Synchronization
- Wait and Notify
- ThreadGroups
- Using ThreadGroups
- Priority
- ThreadGroups Example
- Summary
Chapter 13 Using Java Streams
- What Is a Stream?
- Abstract Stream Classes-InputStream and OutputStream
- Byte Array and String Streams
- ByteArrayInputStream
- ByteArrayOutputStream
- StringBufferInputStream
- File Streams
- FileInputStream
- FileOutputStream
- Filter Streams
- FilterInputStream
- BufferedInputStream
- DataInputStream
- LineNumberInputStream
- PushbackInputStream
- FilterOutputStream
- BufferedOutputStream
- DataOutputStream
- PrintStream
- Pipe Streams
- PipedInputStream
- PipedOutputStream
- Summary
Chapter 14 Incorporating Graphics
- Drawing Filled and Outlined Shapes
- Lines
- Rectangles
- Arcs
- Ovals
- Polygons
- Images
- Filtering Images
- Writing Your Own Image Filter
- The ImageObserver Interface
- Summary
Chapter 15 Multimedia Programming with Java
- Animation
- Using the MediaTracker Class to Load Multiple Images
- Basic Animation
- Image Manipulation
- Sounds
- Summary
Chapter 16 Sprucing Things Up with Colors and Fonts
- The Base Applet
- Setting the Color
- The Color Class
- Set Color Dialog
- Communicating with the Set Color Dialog
- Using the Set Color Dialog
- Setting the Font
- The Font and FontMetrics Classes
- Set Font Dialog
- Communicating with the Set Font Dialog
- Using the Set Font Dialog
- Summary
Chapter 17 Accessing URLs
- What Is a URL?
- The URL Classes
- URL Class
- URLStreamHandler Class
- URLConnection Class
- URLStreamHandlerFactory Interface
- Extending the URL classes-SMTP Client Application
- Interfacing with CGI Scripts and ISAPI Extensions
- Content Handlers
- ContentHandler Class
- ContentHandlerFactory Interface
- Summary
Chapter 18 Networking with Datagrams and Sockets
- TCP/IP Basics
- The InetAddress Class
- The DatagramPacket Class
- The DatagramSocket Class
- A Datagram Example: A Live U.S. National Debt Applet
- The Socket Class
- A Socket Example: A POP Client Application
- Summary
Chapter 19 Client/Server Programming
- The Client/Server Model
- Java's Contribution
- ServerSocket Class
- Client/Server Example: Internet Dictionary
- The Future of Java Client/Server Development
- Summary
Chapter 20 Keeping Out the Riff-Raff: Java Security
- The Security Policy-Setting Limits
- The Java Language
- The Code Verifier
- The ClassLoader
- The SecurityManager
- Applets Versus Applications
- Summary
Chapter 21 Using ActiveX Controls with Java
- Creating the Java Interface Class
- Registering an ActiveX Type Library
- Creating the Java Interface Classes
- Using a COM Object
- Passing COM Object References
- Event Processing
- Nonvisual COM Objects
- Creating a COM Object with Java
- Generating a Universally Unique Global Identification (UUID)
- Defining an Object
- Creating a Type Library
- Registering the Component
- Creating the Java Interface
- Implementing the Java Class
- Using the Java Component
- Creating a Signed CAB File
- CAB Files
- Signing a CAB File
- Summary
Chapter 22 Using the Data Access Objects
- Overview of the Data Access Objects
- Generating the Class Files
- Using _DBEngine Objects
- Using Database Objects
- Controlling Transactions
- OpenRecordset
- Close
- Using Field Objects
- Using Recordset Objects
- Reading Records Sequentially
- Updating Records
- Deleting Records
- Adding New Records
- Finding Records
- Using SQL
- Summary
Chapter 23 Software Cost Estimator
- The Project Overview
- Storing Cost Drivers and Ratings
- Programming the User Interface
- Creating the Imagemap
- Selecting Project Attributes
- The Results Panel
- Creating the Button Panel
- The CostEstimator Buttons
- Resetting Default Values
- Estimating the Project Schedule
- Summarizing Project Attributes
- Summary
Chapter 24 Development Request Online
- Project Overview
- Access to the Data
- Request
- Operator
- Department
- User Interface
- Summary
Appendix A A Whirlwind Tour of the Java Language
- The Structure of a Java File
- Comments
- Java Keywords
- Primitive Types
- Integer Types
- Floating-Point Types
- Other Primitive Types
- Default Values
- Casting Between Primitive Types
- Literals
- Integer Literals
- Floating-Point Literals
- Boolean Literals
- Character Literals
- String Literals
- Arrays
- Allocation
- Initialization
- Array Access
- Operators
- Operators on Integers
- Operators on Floating-Point Values
- Operators on Boolean Values
- Controlling Your Program
- Selection
- Iteration
- Jumping
- Java Classes
- Class Inheritance
- Overriding Member Methods
- The super Variable
- Class Modifiers
- Implementing Interfaces
- Exception Handling
- Trying and Catching
- Using a finally Block
- Summary
Appendix B Pointers and Memory Management
Credits
|
|