Résumé
From the authors of the best-selling The Java™
Tutorial, here is a guide to using the new Swing
components, which are provided by the Java
Foundation Classes (JFC). Developed and co-written by the
lead writer on the Swing team, this book covers everything
you need to know to
write GUIs that use Swing components. The JFC Swing
Tutorial uses a task-oriented, example-driven approach to
introduce you to
fundamental concepts and applications. Designed to be read
either cover-to-cover or as a quick reference, this book
explains how to use each
Swing component, perform layout, do basic drawing, and
convert 1.1 AWT programs to Swing. This book covers Swing
1.1.1, which is
available both as an extension to JDK 1.1 and as a core
part of the Java™ 2 platform. An appendix lists the
complete source code for dozens
of example applications and applets. The accompanying
CD-ROM includes Swing 1.1.1, JDK 1.1, the Java 2 platform,
and the hypertext
version of all three Java Tutorial books.
Contents
- Preface ..... vii
- Before You Start ..... 1
- Part 1: Getting Started with Swing ..... 3
- Chapter 1: About the JFC and Swing ..... 5
- Chapter 2: Compiling and Running Swing Programs .....
11
- Chapter 3: Running Swing Applets ..... 17
- Chapter 4: A Quick Tour of a Swing Application's Code ..... 19
- Part 2: Features and Concepts ..... 25
- Chapter 5: Components and the Containment Hierarchies
..... 29
- Chapter 6: Layout Management ..... 33
- Chapter 7: Event Handling ..... 37
- Chapter 8: Painting ..... 41
- Chapter 9: Threads and Swing ..... 45
- Chapter 10: More Swing Features and Concepts .....
49
- Chapter 11: The Anatomy of a Swing-Based Program ..... 51
- Part 3: Using Swing Components ..... 57
- Chapter 12: A Visual Index to Swing Components .....
63
- Chapter 13: The JComponent Class ..... 67
- Chapter 14: Using Top-Level Containers ..... 77
- Chapter 15: Using Intermediate Swing Containers .....
105
- Chapter 16: Using Atomic Components ..... 167
- Chapter 17: Solving Common Component Problems ..... 337
- Part 4: Laying Out Components ..... 341
- Chapter 18: Using Layout Managers ..... 343
- Chapter 19: Creating a Custom Layout Manager .....
379
- Chapter 20: Doing Without a Layout Manager (Absolute
Positioning) ..... 383
- Chapter 21: Solving Common Layout Problems ..... 385
- Part 5: Using Other Swing Features .....
387
- Part 6: Writing Event Listeners ..... 439
- Chapter 22: Some Simple Event-Handling Examples .....
443
- Chapter 23: General Rules for Writing Event Listeners
..... 447
- Chapter 24: Listeners Supported by Swing Components
..... 453
- Chapter 25: Implementing Listeners for Commonly Handled
Events ..... 457
- Chapter 26: Summary of Listener API ..... 527
- Chapter 27: Solving Common Event-Handling Problems ..... 531
- Part 7: Working with Graphics ..... 533
- Chapter 28: Overview of Custom Painting ..... 537
- Chapter 29: Using Graphics Primitives ..... 545
- Chapter 30: Using Images ..... 555
- Chapter 31: Performing Animation ..... 561
- Chapter 32: Solving Common Graphics Problems ..... 573
- Part 8: Converting to Swing ..... 575
- Chapter 33: Why to Convert ..... 577
- Chapter 34: How to Convert ..... 579
- Chapter 35: Conversion Resources ..... 587
- Chapter 36: Solving Common Conversion Problems ..... 603
- Appendix A: Code Examples ..... 607
- Appendix B: Reference ..... 925
- Index ..... 931
L'auteur - Kathy Walrath
is a technical writer on the JavaSoft team, specializing in how-to guides for programmers. Previous to her experience with Java, she has written extensively about Unix, Mach, and NextStep.
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Addison Wesley |
Auteur(s) | Kathy Walrath |
Parution | 01/06/1999 |
Nb. de pages | 953 |
Couverture | Broché |
Intérieur | Noir et Blanc |
EAN13 | 9780201433241 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse