[Book Cover]

Graphic Java: Mastering the AWT (Bk/CD-ROM), 1/e

David Geary, Monument, Colorado
Alan McClellan, Colorado Springs, Colorado

Published July, 1996 by Prentice Hall PTR (ECS Professional)

Copyright 1997, 600 pp.
Paper Bound w/CD-ROM
ISBN 0-13-565847-0

[CD Included]


Sign up for future
mailings
on this subject.

See other books about:
    Java--Intermediate Programming-Computer Science

    User Interface Design-Computer Science


"C"


Summary

This is the first book that shows programmers exactly how to use the Abstract Windowing Toolkit (AWT) to create graphical programs with Java.

Features


Focuses entirely on the AWT, the Component base class, and the basic components AWT provides.
Describes how to create graphical programs with AWT, using frames, menus, dialog boxes and other elements.
Demonstrates how to use AWT to incorporate images, sounds and animations.
Shows how to extend the AWT with custom GUI components, including more than 30 included in the book and on the accompanying CD-ROM.
Includes Booch class and object diagrams for the entire AWT, and a comprehensive case study in GUI development.
The CD-ROM also includes JDK 1.0, Symantec Café Lite, and much more.


Table of Contents
(NOTE: Each chapter begins with an introduction and concludes with a summary). I. INTRODUCING THE ABSTRACT WINDOW TOOLKIT.

    1. Introduction.

      The Abstract Window Toolkit. The Graphic Java Toolkit. Peers and Platform Independence. Components—The Foundation of the AWT. Components, Containers and Layout Managers.

    2. Applets and Applications.

      Java Applets. Java Applications. Combining Applet and Application Code.

    3. Graphics, Colors, and Fonts.

      Manipulating Graphics and Color. Drawing a Rectangle. Drawing an Etched Rectangle. Drawing a 3-D Rectangle. Exercising the Rectangle Classes. Manipulating Fonts. gjt.LabelCanvas Implementation. Exercising the LabelCanvas.

    4. Event Handling.

      The AWT Event Model. Event Modifier Constants. Mouse Button Events. Of Mice and Buttons. Monitoring Mouse Events. Sensing Double Clicking. Action Events. Identifying Components by Label — Just Say No. Custom Component Events.

    5. Menus.

      The Menu Classes. A File Menu. Handling Menu Events. Tear- off Menus. A Menubar Printer. A FrameWithMenuBar Class. Help Menus. Checkbox Menu Items. Cascading Menus. Dynamically Modifying Menus.

    6. Images.

      The Image Class and the Image Package. Image Producers and Image Observers. Obtaining and Displaying Images. Differences Between Applets and Applications. Waiting for an Image to Load. Painting Images a Scanline at a Time. Filtering Images. gjt.image.BleachImageFilter.

    7. Components, Containers, and Layout Managers.

      The Big Three of the AWT. LayoutManager Responsibilities. Layout Managers and the Good Life. Layout Managers and Container Insets. Peers and Insets. Painting a Container's Components. TenPixelBorder. Layout Managers and Component Preferred Sizes. Standard AWT Layout Managers. Decisions, Decisions—Which Layout Manager to Use? The GridBagLayout Layout Manager. Laying Out Components in Nested Panels. Custom Layout Managers.

II. THE GRAPHIC JAVA TOOLKIT—EXTENDING THE AWT.
    8. Introducing the Graphic Java Toolkit.

      Overview of the Graphic Java Toolkit.

    9. Separators and Bargauges.

      gjt.Separator. Separator Associations and Responsibilities. Exercising the Separator. gjt.Bargauge. Bargauge Associations and Responsibilities. Exercising the Bargauge.

    10. Borders.

      gjt.Border. gjt.ThreeDBorder. gjt.EtchedBorder. Exercising Border.

    11. ImageButton and StateButton.

      gjt.Image Button. gjt.ImageButton Associations and Responsibilities. Image Button Controllers. ImageButton Events. Exercising the Image Button and Its Controllers. gjt.StateButton. Exercising the StateButton and Its Controllers.

    12. Toolbars.

      Overview of Toolbar. gjt.ImageButtonPanel. gjt.Toolbar Associations and Responsibilities. ImageButtonPanel Mouse Event Controllers. ExclusiveImageButtonPanel. Exercising the Toolbar.

    13. Rubberbanding.

      The Graphic Java Toolkit Rubberband Package. The Rubberband Base Class. Rubberband Associations and Responsibilities. Painting in XOR Mode. Drawing Rubberband Lines. Drawing Rubberband Rectangles and Ellipses. A Rubberband Panel. Exercising the Rubberband Package. Refactoring the Unit Test. The GJT DrawingPanel Class.

    14. Dialogs.

      The AWT Dialog. Dismissing a Dialog. gjt.DialogClient. GJT Dialog Classes. GJT Dialog Base Class. gjt.ButtonPanel. gjt.MessageDialog. gjt.YesNoDialog. gjt.QuestionDialog. gjt.ProgressDialog. Exercising the GJT Dialogs.

    15. FontDialog.

      gjt.FontDialog. A Font Panel. Forcing a Container to Lay Out Its Components. The Font Selection Panel. The Font Picker Panel. The Font Buttons Panel. Exercising the gjt.FontDialog.

    16. Scrollers.

      Scrollbars. Scrolling With the Graphic Java Toolkit. gjt.Scroller. gjt.ComponentScroller. gjt.ImageCanvas and gjt.ImageScroller. Exercising the gjt.ImageScroller. Exercising the gjt.ComponentScroller.

    17. Sprite Animation.

      The Participants. Sequences and Sprites. Playfields and Double Buffering. Collision Detection. Exercising the gjt.animation Package.
III. APPENDIXES.
    Appendix A: AWT Class Diagrams.
    Appendix B: The Graphic Java CD-ROM.
    Index.


[Help]

© Prentice-Hall, Inc. A Simon & Schuster Company
Comments To webmaster@prenhall.com