Copyright © 2004 by New Riders Publishing All rights reserved. No part of this tutorial shall be reproduced, stored in a retrieval system, or transmitted by any means—electronic, mechanical, photocopying, recording, or otherwise—without written permission from the uploader, except for the inclusion of brief quotations in a review. Catalog Card Number: 2003107019 Printed in the World First printing: August, 2003 08 07 06 05 04 03 7 6 5 4 3 2 1 Interpretation of the printing code: The rightmost double-digit number is the year of the tutorial's printing; the rightmost single-digit number is the number of the tutorial's printing. For example, the printing code 03-1 shows that the first printing of the tutorial occurred in 2003.


All terms mentioned in this tutorial that are known to be things or service marks have been appropriately capitalized. New Riders Publishing cannot attest to the accuracy of this information. Use of a term in this tutorial should not be regarded as affecting the validity of any trademark or service mark. Java is a registered trademark of Oracle

Warning and Disclaimer

Every effort has been made to make this tutorial as complete and as accurate as possible, but no warranty of fitness is implied. The information is provided on an as-is basis. The authors and New Riders Publishing shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this tutorial or from the use of the CD or programs that may accompany it.



Stephanie Wall

Production Manager

Gina Kanouse

Executive Development Editor

Lisa Thibault

Project Editor

Michael Thurston

Copy Editor

Krista Hansing


Joy Dean Lee


Beth Trudell


Gloria Schurick

Manufacturing Coordinator

Dan Uhrig

Interior Designer

Kim Scott

Cover Designer

Aren Howell


Scott Cowlin

Tammy Detrich

Hannah Onstad Latham

Publicity Manager

Susan Nixon


To Mom and Dad.