![[Book Cover]](../covergif/0135658470.gif)
|
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
$39.95
|
Sign up for future mailings on this subject.
See other books about:
JAVA
![[Preface]](../images/cat_preface.gif)
"Click here to see foreign versions available for this book"
|
While almost every Java book covers the AWT, none . . . does it so well or provides such good advice on how best to use it. Dr. Dobbs Journal, March 1997
A comprehensive guide to the Abstract Window Toolkit for JDK 1.1.
Graphic Java 1.1 (Second Edition) has been completely revised to cover all of the AWT features provided by the 1.1 JDK. It provides detailed descriptions of every aspect of the AWT, including:
- Lightweight components.
- Graphics Colors and Fonts.
- Event Handling.
- Image Manipulation Clipboard and data transfer.
- Menus.
- Printing.
- Dialogs.
- AWT Layout Managers.
In addition, Graphic Java 1.1 comes with the Graphic Java Toolkit (GJT)a set of freely reusable Java packages that extend the functionality of the AWT. The GJT provides over 40 high-level components, ranging from image buttons and scrollers to toolbars and convenience dialogs.
@ The accompanying CD-ROM includes all of the example code from the book, ready to run on Solaris, Windows 95 and Windows NT along with the JDK 1.1 for those platforms. The complete source code for the GJT for Solaris, Windows 95/NT, and Macintosh is also included for JDK 1.0.2 and JDK 1.1.
DAVID M. GEARY has been developing GUIs and using object-oriented technology since 1984, including C++, Smalltalk, Eiffel, Objective-C, and now Java. He is currently a software engineer at SunSoft, Inc. in Colorado Springs, CO.
(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. ComponentsThe 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, DecisionsWhich Layout
Manager to Use? The GridBagLayout Layout Manager. Laying Out
Components in Nested Panels. Custom Layout Managers.
II. THE GRAPHIC JAVA TOOLKITEXTENDING 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.
|