Copyright
About the Author
Acknowledgments
We Want to Hear from You!
Introduction
Why Is This Book Unique?
Who Is This Book For?
About the Book's Code
Conventions Used in This Book
Chapter 1. Making Fish Swim in the Multithreaded Aquarium
Building the Aquarium
Loading the Fish
Moving Those Fish
Double-Buffering the Drawing
Creating the Fish
Making the Fish Swim
Drawing the Fish
Conclusion
Chapter 2. Slapshot! The Interactive Hockey Game
Creating the Rink
Starting a Game
Moving Those Pucks
Getting the Pucks to Bounce Off Each Other
How the Computer Blocks Pucks
How the User Blocks Pucks
Setting the Speed
Creating the Pucks
Conclusion
Chapter 3. The Graphicizer Image-Editing and Conversion Tool
Creating the Graphicizer Window
Opening an Image File
Painting the Image
Saving an Image File
Embossing an Image
Sharpening an Image
Brightening an Image
Blurring an Image
Reducing an Image
Undoing a Change
Conclusion
Chapter 4. Creating Stunning Graphics with Painter
Creating the Painter Window
Handling Menu Selections
Handling the Mouse
Drawing Some Graphics
Drawing Lines
Drawing Ellipses
Drawing Rectangles
Drawing Rounded Rectangles
Drawing Freehand
Drawing Text
Drawing the Final Image
Setting Colors
Conclusion
Chapter 5. Chatting on the Internet with the Chat Room
Creating the Chat HTML Page
Creating JSP Pages
Getting the Tomcat Web Server
Using Some Java in JSP
Reading Data from HTML Controls in JSP
Using Request Objects
Using the Session an
1