Java Foundation Classes in a Nutshell is an indispensable quick reference for Java programmers who are writing applications that use graphics or graphical user interfaces. The author of the bestselling Java in a Nutshell has written fast-paced introductions to the Java APIs that comprise the Java Foundation Classes (JFC), such as the Swing GUI components and Java 2D, so that you can start using these exciting new technologies right away. This book also includes O'Reilly's classic-style, quick-reference material for all of the classes in the javax.swing and java.awt packages and their numerous subpackages. This reference material covers all of the new JFC classes in the Java 2 platform, as well as the existing Java 1.1 AWT classes. Once you've learned about the JFC, you'll keep this book next to your keyboard for handy reference while you program.
Java Foundation Classes in a Nutshell contains the following: * An overview of the architecture of graphical user interfaces built with both the new Swing API and the older AWT * An introduction to the important components and application services provided by the Swing API * An comprehensive explanation of the features of the new Java 2D graphics API * A complete quick reference for the graphics- and GUI-related classes in the Java 2 platform This book is part of the two-volume set of quick references that every Java programmer needs. It is an essential companion to Java in a Nutshell, 3rd Edition, which covers the key nongraphical APIs in Java 1.2. A third volume, Java Enterprise in a Nutshell, focuses on the Java Enterprise APIs and is of interest to programmers working on server-side or enterprise Java applications.
Preface. PART 1: Introducing the Java Foundation Classes. Chapter 1. The Java Foundation Classes. Chapter 2. Swing and AWT Architecture A Simple Graphical User Interface Components Properties Containers and Containment Layout Management Event Handling Swing Component Architecture. Chapter 3. Swing Programming Topics Versions of Swing Labels and HTML Actions Tooltips Timers The Event Dispatch Thread Client Properties Keyboard Shortcuts Serialization Borders Icons Cursors Double-Buffering The Box Container Simple Dialogs JFileChooser JColorChooser Menus JTree and TreeModel JTable and TableModel JTextComponent and HTML Text Display Pluggable Look-and-Feel Accessibility Custom Components. Chapter 4. Graphics with AWT and Java 2D Graphics Before Java 2D Java 2D Graphics Attributes and Operations The Coordinate System Shapes Stroking Lines Paint Blending Colors with AlphaComposite Rendering Hints Fonts and Text Buffered Images Transformations with AffineTransform Color Spaces. Chapter 5. Printing Printing in Java 1.1 Printing in Java 1.2. Chapter 6. Data Transfer The Data Transfer Framework Cut-and-Paste Drag-and-Drop A Data Source A Data Sink. Chapter 7. Applets Writing Applets Including Applets in HTML Files Applet Security PART 2: API Quick Reference .TC 0 "How To Use This Quick Reference" 139. Chapter 8. The java.applet Package. Chapter 9. The java.awt Package. Chapter 10. The java.awt.color Package. Chapter 11. The java.awt.datatransfer Package. Chapter 12. The java.awt.dnd Package Chapter 13. The java.awt.dnd.peer Package. Chapter 14. The java.awt.event Package. Chapter 15. The java.awt.font Package Chapter 16. The java.awt.geom Package. Chapter 17. The java.awt.im Package. Chapter 18. The java.awt.image Package. Chapter 19. The java.awt.image.renderable Package. Chapter 20. The java.awt.peer Package. Chapter 21. The java.awt.print Package. Chapter 22. The javax.accessibility Package. Chapter 23. The javax.swing Package Chapter 24. The javax.swing.border Package. Chapter 25. The javax.swing.colorchooser Package. Chapter 26. The javax.swing.event Package. Chapter 27. The javax.swing.filechooser Package Chapter 28. The javax.swing.plaf Package. Chapter 29. The javax.swing.table Package. Chapter 30. The javax.swing.text Package Chapter 31. The javax.swing.text.html Package. Chapter 32. The javax.swing.text.html.parser Package. Chapter 33. The javax.swing.text.rtf Package. Chapter 34. The javax.swing.tree Package. Chapter 35. The javax.swing.undo Package. Chapter 36. Class Index Index