Developing Professional Java Applets
K. C. Hopson, Sams Publishing ISBN:1575210835, Edition: , 1996-06-01 Price: $49.99
Contents
Introduction
Chapter 1 The Java Development Environment
- Tough Problems in Search of One Solution
- Why Java Is a Comprehensive Solution
- Why Object-Oriented Is Important
- Java as an Object-Oriented Language
- Java as a Portable Environment
- Java as High Performance
- Java in the World of Distributed Computing
- Java as a Secure Environment
- General Features of the Java Programming Language
- Data Types
- Literals
- Variables
- Comments
- Operators
- Keywords and Conditionals
- Loops
- Arrays
- Applets and Standalone Applications
- Creating an Applet
- Creating a Standalone Application
- Applets Versus Standalone Applications
- Summary
Chapter 2 Object-Oriented Development in Java
- Introduction to Java Classes and Objects
- Basic Structure of a Class
- Creating an Object Instance
- Using Methods
- Overloading Methods
- Constructors
- Inheritance in Java
- Subclassing
- Method Overriding
- Calling Superclass Methods
- Calling Superclass Constructors
- Important Core Classes
- The Object Base Class
- String Classes
- Type Wrappers
- More about Classes
- Access Modifiers
- Class Methods and Class Variables
- The final Modifier
- The null Keyword and More about Garbage Collection
- Scoping Rules
- Casting Rules
- Other Keywords
- Introduction to Exception Handling
- Structure of an Exception Handler
- When to Catch Exceptions
- Exception Handlers and Exception Classes
- Nested Exceptions
- Organizing Projects in Java
- Abstract Methods
- Interfaces
- Packages
- The Java Developer's Kit
- Summary
Chapter 3 Building a Spreadsheet Applet
- Overview of AWT: Part 1
- AWT Classes
- Components and Containers
- Layouts
- Event Handling
- Exception Classes
- The Throwable Class
- Exception Class Hierarchy
- Exception Handlers and Throwable Classes
- Writing Custom Exception Handlers
- Class Organization
- The Cell Class
- The Cell Container Class
- The FormulaParserClass
- The FormulaParserException Class
- The ArgValue Class
- The SpreadsheetCell Class
- The SpreadsheetContainer Class
- The SpreadsheetFrame Class
- The SpreadsheetApplet class
- Summary
Chapter 4 Enhancing the Spreadsheet Applet
- Overview of AWT: Part 2
- Windows and Frames
- Menus
- Dialogs
- Colors
- Fonts
- The Toolkit Class
- I/O and Streams
- Structure of the java.io Package
- I/O and Security
- I/O Exceptions
- InputStream Classes
- OutputStream Classes
- FilterOutputStream Classes and FileOutputStream
- Other Output Classes
- Other I/O Classes
- Tutorial
- Class Organization
- Adding the Color Dialog
- Font Dialog Box
- The FileDialog Class
- Saving a Spreadsheet File
- Opening a Spreadsheet File
- Summary
Chapter 5 Adding Graphs and Scrollbars to the Spreadsheet
- Tutorial
- Adding Scrollbars
- Adding the Scrollbar Class
- Handling Scrollbar Events
- Inside the SpreadsheetContainer Paint Methods
- Marking Cells
- Drawing Graphs
- Summary
Chapter 6 Building a Catalog Applet
- Basics of the Applet Class
- Applets and HTML
- Applets and Images
- Applets and Audio
- Under the Applet Hood
- Creating and Reading a URL
- Chapter Project
- Class Organization
- Catalog HTML
- The Catalog Class
- The CatalogButton Class
- The SelectionCanvas Class
- The MediaLoader Class
- The MediaLoaderException Class
- Summary
Chapter 7 Java and Images
- Displaying Images
- Loading Java Images
- Image Display
- Image Observers
- Tracking Image Loading
- The Consumer/Producer Model
- Java Color Models
- Default RGB
- Direct Color
- Index Color
- Chapter Project: Displaying a Windows BMP Image
- Using Image Types Not Supported by Java
- Memory Images
- Loading Foreign Images
- BMP File Format
- Reading Unsigned Binary in Java
- Creating the Color Table
- Constructing the Image
- Summary
Chapter 8 Adding Threads to Applets
- What Is a Thread?
- Creating a Thread with the Thread Class
- Enhancing Your First Multithreaded Applet
- The Runnable Interface
- Synchronization
- A TestStack Class That Is Not Thread-Safe
- Introducing the Synchronized Modifier
- Notify and Wait
- More About Threads
- ThreadGroups
- Talking Threads: Pipes and Threads
- Chapter Project
- Class Organization
- Catalog HTML and Preload File
- The MediaLoaderThread and MediaObserver Classes
- The MediaLoader Class
- The MediaSweeper Class
- The Queue Class
- The BMPImage Class
- The Catalog Class
- The CatalogButton Class
- The SelectionCanvas Class
- Summary
Chapter 9 Java Socket Programming
- An Introduction to Sockets
- Socket Transmission Modes
- Java Connection-Oriented Classes
- Iterative and Concurrent Servers
- Java Datagram Classes
- Applet Security and Sockets
- Chapter Project: HTTP Server Application and Client Applet
- Chapter Project: HTTP Server Application and Client Applet
- Basic Web Server
- Client Datagram Applet
- Client Applet
- Summary
Chapter 10 Native Methods and Java
- Deciding to Use Native Methods
- Native Methods from the Java Side
- Writing Native Methods
- Using Javah
- Java Arrays
- The Stubs Code
- Chapter Project: A Database Interface Library Using ODBC
- Calling Back Into Java
- Constructing Java Objects from C
- Creating the Library
- Database Server
- Adding Packet Assembly to DGTP
- Election Client
- Summary
Chapter 11 Building a Live Data Applet
- Observers and the Model-View Paradigm
- Chapter Project
- General Architecture of the Project
- Changes to the Server
- Applet Client
- Summary
Chapter 12 Handling Dynamic Content
- Introducing the HotJava Browser
- Dynamic Content
- Security Model
- Alpha3 Distribution Differences
- Altering the HotJava Source
- Buffered Streams Primer
- Making the Changes
- Compiling Under HotJava
- Toward a More Perfect Server
- Adding a Configuration File
- Adding Standard Logging
- Building Log Information
- Altering the Send Routines
- Creating New Content Types
- Summary
Chapter 13 Animation and Image Filters
- Simple Animation Using Images
- Image Producers
- Filtering an Image
- FilteredImageSource
- Writing a Filter
- Static Image Filter: Rotation
- Double Buffering
- Dynamic Image Filter: FXFilter
- Corporate Presentation Applet
- How the PresentImage Applet Works
- Summary
Chapter 14 Advanced Image Processing
- Chapter Project
- Class Organization
- How It Works
- Fractals and the Mandelbrot Set
- Using the Applets
- The Mandelbrot Class
- CalculateFilterNotify Interface
- CalculatorProducer Interface
- The CalculatorFilter Class
- The CalculatorImage Class
- The MandelApp Class
- The MandelZoomApp Class
- The BmpImage Class
- Automatic Documentation with javadoc
- Summary
Appendix A Inside the Java Virtual Machine
- The Class File
- The Virtual Machine
- Primitive Types
- Local Variables
- The Verifier
- Exception Handling
- Bytecodes
- Test Class Bytecodes
- Garbage Collection
Appendix B Language Grammar
Credits
|
|