did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780201914672

The JFC Swing Tutorial A Guide to Constructing GUIs

by ; ; ;
  • ISBN13:

    9780201914672

  • ISBN10:

    0201914670

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2004-02-24
  • Publisher: Addison-Wesley Professional
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $69.99

Summary

The perfect book to learn the ins and outs of JFC and Swing Fully understand how to build GUIs using JFC and Swing Written by lead writer on the Swing team and best-selling author of The Java Tutorial -- Kathy Walrath The previous edition sold over 17,000 copies

Author Biography

Kathy Walrath is a senior technical writer on the Swing team at Sun Microsystems. After graduating from the University of California, Berkeley, with a B.S. in Electrical Engineering and Computer Science, Kathy wrote extensively about Unix, Mach, and NextStep. Since 1993, Kathy has been writing specifications and how-to guides for the Java platform. Mary Campione was formerly a senior technical writer at Sun Microsystems, where she started writing about the Java platform in 1995. Mary graduated from California Polytechnic, San Luis Obispo, with a B.S. in Computer Science and has worked as both a technical writer and programmer.

Alison Huml is a technical writer at Sun Microsystems, where she joined The Java Tutorial team in 1997 and also works with the Security team. Alison received her B.A. in English from the University of California, Berkeley, and is currently pursuing her master's degree in Computer Science at Mills College.

Sharon Zakhour, the Java Tutorial team lead, has worked at Sun as a senior technical writer for seven years. She graduated from UC Berkeley with a B.A. in Computer Science and has worked as a programmer, developer support engineer, and technical writer for more than 20 years.



Table of Contents

Prefacep. xi
Before You Startp. 1
Getting Started with Swingp. 3
About the JFC and Swingp. 4
Compiling and Running Swing Programsp. 6
Questions and Exercisesp. 9
Example Programsp. 9
Learning Swing by Examplep. 11
Your First Swing Programp. 12
SwingApplicationp. 15
CelsiusConverterp. 21
An Improved CelsiusConverterp. 22
LunarPhasesp. 25
VoteDialogp. 30
Summaryp. 32
Questions and Exercisesp. 33
Example Programsp. 34
Using Swing Componentsp. 35
A Visual Index to Swing Componentsp. 37
Using HTML in Swing Componentsp. 43
Using Top-Level Containersp. 46
Using Modelsp. 50
The JComponent Classp. 53
Using Text Componentsp. 60
Summaryp. 83
Questions and Exercisesp. 83
Example Programsp. 84
Laying Out Components within a Containerp. 87
A Visual Guide to Layout Managersp. 88
Using Layout Managersp. 92
How Layout Management Worksp. 97
Creating a Custom Layout Managerp. 98
Doing without a Layout Manager (Absolute Positioning)p. 100
Summaryp. 102
Questions and Exercisesp. 102
Example Programsp. 105
Writing Event Listenersp. 107
Some Event-Handling Examplesp. 108
General Information about Writing Event Listenersp. 112
Listeners Supported by Swing Componentsp. 118
Listener API Tablep. 122
Summaryp. 125
Questions and Exercisesp. 126
Example Programsp. 127
Performing Custom Paintingp. 129
How Swing Components Are Displayedp. 130
Introduction to Painting Conceptsp. 134
Implementing a Custom Componentp. 140
Summaryp. 144
Questions and Exercisesp. 144
Example Programsp. 146
Components Referencep. 147
How to Make Appletsp. 149
How to Use Buttonsp. 156
How to Use Check Boxesp. 163
How to Use Color Choosersp. 167
How to Use Combo Boxesp. 176
How to Make Dialogsp. 187
How to Use Editor Panes and Text Panesp. 200
How to Use File Choosersp. 206
How to Use Formatted Text Fieldsp. 221
How to Make Frames (Main Windows)p. 236
How to Use Internal Framesp. 245
How to Use Labelsp. 253
How to Use Layered Panesp. 258
How to Use Listsp. 267
How to Use Menusp. 277
How to Use Panelsp. 292
How to Use Password Fieldsp. 297
How to Use Progress Barsp. 300
How to Use Radio Buttonsp. 311
How to Use Root Panesp. 316
How to Use Scroll Panesp. 325
How to Use Separatorsp. 343
How to Use Slidersp. 348
How to Use Spinnersp. 357
How to Use Split Panesp. 369
How to Use Tabbed Panesp. 382
How to Use Tablesp. 388
How to Use Text Areasp. 418
How to Use Text Fieldsp. 423
How to Use Tool Barsp. 427
How to Use Tool Tipsp. 434
How to Use Treesp. 437
Layout Manager Referencep. 457
How to Use BorderLayoutp. 459
How to Use BoxLayoutp. 462
How to Use CardLayoutp. 476
How to Use FlowLayoutp. 479
How to Use GridBagLayoutp. 481
How to Use GridLayoutp. 490
How to Use SpringLayoutp. 492
Other Swing Features Referencep. 509
How to Use Actionsp. 513
How to Support Assistive Technologiesp. 519
How to Use Bordersp. 535
How to Use Drag and Drop and Data Transferp. 545
How to Use the Focus Subsystemp. 583
How to Use Iconsp. 603
How to Use Key Bindingsp. 623
How to Set the Look and Feelp. 628
How to Use Threadsp. 632
How to Use Timersp. 639
Event Listeners Referencep. 643
How to Write an Action Listenerp. 646
How to Write a Caret Listenerp. 649
How to Write a Change Listenerp. 652
How to Write a Component Listenerp. 654
How to Write a Container Listenerp. 658
How to Write a Document Listenerp. 661
How to Write a Focus Listenerp. 665
How to Write an Internal Frame Listenerp. 670
How to Write an Item Listenerp. 674
How to Write a Key Listenerp. 676
How to Write a List Data Listenerp. 682
How to Write a List Selection Listenerp. 685
How to Write a Mouse Listenerp. 689
How to Write a Mouse-Motion Listenerp. 695
How to Write a Mouse Wheel Listenerp. 699
How to Write a Property-Change Listenerp. 704
How to Write a Table Model Listenerp. 708
How to Write a Tree Expansion Listenerp. 710
How to Write a Tree Model Listenerp. 713
How to Write a Tree Selection Listenerp. 715
How to Write a Tree-Will-Expand Listenerp. 718
How to Write an Undoable Edit Listenerp. 721
How to Write Window Listenersp. 723
Troubleshooting Referencep. 733
Java Web Start Troubleshootingp. 733
Solving Common Component Problemsp. 735
Solving Common Layout Problemsp. 738
Solving Common Event-Handling Problemsp. 739
Solving Common Painting Problemsp. 740
Solving Common Problems Using Other Swing Featuresp. 743
Indexp. 745
The JFC Swing Tutorial CD Contentsp. 767
Table of Contents provided by Rittenhouse. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Excerpts

This edition ofThe Java Tutorialtells you how to write GUIs that use the Java Foundation Classes (JFC) "Swing" components. In this book we cover the most recent release of the Java 2 platform (v1.4.2 as of this printing). We also include information valuable to programmers using earlier releases and discuss Swing enhancements planned for the near future.The online form ofThe Java Tutorialhas covered the Swing components since their first public early-access releaseSwing 0.2, which came out in July 1997. Throughout the early releases, the Tutorial kept pace with API changes and additions. Readers and reviewers kept us on our toes, helping us improve each page tremendously. Although this book has its roots in the online version, this edition has been reorganized and rewritten.Numerous improvements have been made. First, this book uses current API (v1.4.2), has six new introductory chapters, and has an easy-to-use tabbed reference section. It reflects lessons learned by the Swing team in the years since the introduction of Swing components. Second, we cover newer features such as JFormattedTextField, JSpinner, indeterminate JProgressBar, mouse wheel support, the rearchitected focus subsystem, and improved support for drag and drop.The book and CD contain more than 150 complete, working examples. The authors have worked closely with the Swing team to ensure that the code and discussions reflect recommended usage. The Swing component set has now been out for several years now and has a mature API. That, combined with the years of experience the Swing writers and engineers have had with the API, enables us to create the definitive introduction and guide for both inexperienced and advanced programmers who use Swing components.

Rewards Program