Tricks of the Java Programming Gurus.pdf

(1943 KB) Pobierz
CONTENTS -- Tricks of the Java Programming Gurus
CONTENTS -- Tricks of the Java Programming Gurus
Tricks
of the
Java Programming
Gurus
by Glenn L. Vanderburg. et al.
C O N T E N T S
Introduction
l
getApplet: The "Official" Mechanism
l
Static Variables and Methods
l
Network Communication
l
Thread-Based Communication
l
Summary
l
Java Media Objects and the Internet
l
Keeping Up with Media Objects
l
The MediaTracker Class
l
Tracking Images with the Media Tracker
l
Tracking Other Types of Media
l
Summary
file:///G|/ebooks/1575211025/index.htm (1 of 18) [11/06/2000 7:37:50 PM]
23045332.002.png
CONTENTS -- Tricks of the Java Programming Gurus
l
Retrieving Data Using URLs
l
Posting Data to a URL
l
Communication Using Sockets
l
Summary
l
Digital Audio Fundamentals
l
Java Audio Support
l
Playing Audio In Java
l
The Future of Java Audio
l
Summary
l
Stream Classes
l
Non-Stream I/O Classes
l
Highly Structured Files
l
Summary
l
Using Threads
l
Performance
l
Inside Threads
l
Summary
l
Concurrency
l
Monitors
l
Advanced Monitor Concepts
file:///G|/ebooks/1575211025/index.htm (2 of 18) [11/06/2000 7:37:50 PM]
23045332.003.png
CONTENTS -- Tricks of the Java Programming Gurus
l
Synchronization
l
A Thread Coordination Example
l
Advanced Thread Coordination
l
Summary
l
Automated Layout and the AWT Layout Manager
l
Basic Layout Classes
l
The GridBagLayout Class
l
Creating Your Own Layout Manager
l
Summary
l
Components-an Overview
l
New Components from Old
l
A Self-Validating TextField
l
A Multi-State Toggle Button
l
Overview
l
Summary
l
Component, Container, Panel
l
E Pluribus Unum: Out of Many-One
l
Panels Are Components Too
l
Layouts
l
Whose Event Is It Anyway?
l
The Panel as a Component Manager
l
A Scrolling Picture Window Example
l
Overview
l
Class Construction
file:///G|/ebooks/1575211025/index.htm (3 of 18) [11/06/2000 7:37:50 PM]
23045332.004.png
CONTENTS -- Tricks of the Java Programming Gurus
l
Event Handling
l
Summary
l
Basic Event Handling
l
The Event Class
l
Key Events
l
Mouse Events
l
Displaying Events
l
Events with Methods
l
Generating Events
l
Fixing Broken Event Handling
l
A Complete Example
l
Major Surgery to the Event Model
l
Summary
l
Understanding Color
l
Color Images in Java
l
Color Models
l
The Color Model Classes
l
Working with Color Models
l
Image Filters
l
The Image Filter Classes
l
Writing Your Own Image Filters
l
Using Image Filters
l
Summary
l
What Is Animation?
l
Types of Animation
l
Implementing Frame Animation
file:///G|/ebooks/1575211025/index.htm (4 of 18) [11/06/2000 7:37:51 PM]
23045332.005.png
CONTENTS -- Tricks of the Java Programming Gurus
l
Eliminating Flicker
l
Implementing Sprite Animation
l
Testing the Sprite Classes
l
Summary
Chapter 14 Writing 2D Games
l
2D Game Basics
l
Scaling an Object
l
Translating an Object
l
Rotating an Object
l
2D Game Engine
l
The Missile Class
l
Asteroids
l
The Asteroids Applet Class
l
The Asteroids
l
The Ship
l
The Photons
l
Final Details
l
Summary
l
Going Beyond Reality
l
Making the World Behave
l
Overview of VRML
l
The VRML Script Node
l
VRML Datatypes in Java
l
Integrating Java Scripts with VRML
l
The Browser Class
l
The Script Execution Model
l
Creating Efficient Behaviors
l
Dynamic Worlds-Creating VRML on the Fly
file:///G|/ebooks/1575211025/index.htm (5 of 18) [11/06/2000 7:37:51 PM]
23045332.001.png
Zgłoś jeśli naruszono regulamin