Home > Store > Programming > Java

JFC Swing Tutorial, The: A Guide to Constructing GUIs, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

JFC Swing Tutorial, The: A Guide to Constructing GUIs, 2nd Edition

Book

  • Your Price: $55.99
  • List Price: $69.99
  • Usually ships in 24 hours.

About

Features

The task-oriented and example-driven tutorial to JFC Swing -- now fully updated and revised!

° 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 more than 17,000 copies

Description

  • Copyright 2004
  • Dimensions: 7-3/8 x 9-1/4
  • Pages: 784
  • Edition: 2nd
  • Book
  • ISBN-10: 0-201-91467-0
  • ISBN-13: 978-0-201-91467-2

The JFC Swing Tutorial is back, fully revised and updated to include the latest revisions to the JFC Swing API and the Java™ 2 platform. In this book, authors and Java experts Kathy Walrath, Mary Campione, Alison Huml, and Sharon Zakhour—working closely with the Sun Microsystems Swing team—explore the ins and outs of creating GUIs with Swing components.

This task-oriented, example-driven tutorial allows you to create user interfaces that work without change on multiple platforms, appearing and performing as well as or better than native interfaces. Leveraging the full power of the latest edition of the Java 2 platform, the authors bring the art of GUI creation to life with content new to this edition. This includes an easy-to-use tabbed reference section, new introductory chapters, and coverage of newer features such as JSpinner, JFormattedTextField, JProgressBar, mouse wheel support, the rearchitected focus subsystem, and improved support for drag and drop.

Coverage includes:

  • Introductory material for developers getting started with Swing, including sections on basic components such as text fields, labels, and buttons, as well as on using images
  • The latest advice from the Swing team about thread safety
  • Advanced Swing material, including changing key bindings, manipulating the focus, using data models, and adding painting code that uses the powerful Java 2D™ API
  • How-to discussions on using individual components and containers, including advanced components such as tables, trees, and text editors
  • Over 150 complete, working code examples

For the novice or experienced Java developer looking to create robust, powerful, and visually stunning GUIs, The JFC Swing Tutorial, Second Edition, is an indispensable tutorial and reference.

Sample Content

Online Sample Chapter

Getting Started with Swing

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Table of Contents



Preface.


Before You Start.


1. Getting Started with Swing.

About the JFC and Swing.

Compiling and Running Swing Programs.

Questions and Exercises.

Example Programs.



2. Learning Swing by Example.

Example One: Your First Swing Program.

Example Two: SwingApplication.

Example Three: CelsiusConverter.

Example Four: An Improved CelsiusConverter.

Example Five: LunarPhases.

Example Six: VoteDialog.

Summary.

Questions and Exercises.

Example Programs.



3. Using Swing Components.

A Visual Index to Swing Components.

Using HTML in Swing Components.

Using Top-Level Containers.

Using Models.

The JComponent Class.

Using Text Components.

Summary.

Questions and Exercises.

Example Programs.



4. Laying Out Components within a Container.

A Visual Guide to Layout Managers.

Using Layout Managers.

How Layout Management Works.

Creating a Custom Layout Manager.

Doing without a Layout Manager (Absolute Positioning).

Summary.

Questions and Exercises.

Example Programs.



5. Writing Event Listeners.

Some Event-Handling Examples.

General Information about Writing Event Listeners.

Listeners Supported by Swing Components.

Listener API Table.

Summary.

Questions and Exercises.

Example Programs.



6. Performing Custom Painting.

How Swing Components Are Displayed.

Introduction to Painting Concepts.

Implementing a Custom Component.

Summary.

Questions and Exercises.

Example Programs.



7. Components Reference.

How to Make Applets.

How to Use Buttons.

How to Use Check Boxes.

How to Use Color Choosers.

How to Use Combo Boxes.

How to Make Dialogs.

How to Use Editor Panes and Text Panes.

How to Use File Choosers.

How to Use Formatted Text Fields.

How to Make Frames (Main Windows).

How to Use Internal Frames.

How to Use Labels.

How to Use Layered Panes.

How to Use Lists.

How to Use Menus.

How to Use Panels.

How to Use Password Fields.

How to Use Progress Bars.

How to Use Radio Buttons.

How to Use Root Panes.

How to Use Scroll Panes.

How to Use Separators.

How to Use Sliders.

How to Use Spinners.

How to Use Split Panes.

How to Use Tabbed Panes.

How to Use Tables.

How to Use Text Areas.

How to Use Text Fields.

How to Use Tool Bars.

How to Use Tool Tips.

How to Use Trees.



8. Layout Manager Reference.

How to Use BorderLayout.

How to Use BoxLayout.

How to Use CardLayout.

How to Use FlowLayout.

How to Use GridBagLayout.

How to Use GridLayout.

How to Use SpringLayout.



9. Other Swing Features Reference.

How to Use Actions.

How to Support Assistive Technologies.

How to Use Borders.

How to Use Drag and Drop and Data Transfer.

How to Use the Focus Subsystem.

How to Use Icons.

How to Use Key Bindings.

How to Set the Look and Feel.

How to Use Threads.

How to Use Timers.



10. Event Listeners Reference.

How to Write an Action Listener.

How to Write a Caret Listener.

How to Write a Change Listener.

How to Write a Component Listener.

How to Write a Container Listener.

How to Write a Document Listener.

How to Write a Focus Listener.

How to Write an Internal Frame Listener.

How to Write an Item Listener.

How to Write a Key Listener.

How to Write a List Data Listener.

How to Write a List Selection Listener.

How to Write a Mouse Listener.

How to Write a Mouse-Motion Listener.

How to Write a Mouse Wheel Listener.

How to Write a Property-Change Listener.

How to Write a Table Model Listener.

How to Write a Tree Expansion Listener.

How to Write a Tree Model Listener.

How to Write a Tree Selection Listener.

How to Write a Tree-Will-Expand Listener.

How to Write an Undoable Edit Listener.

How to Write Window Listeners.



Appendix. Troubleshooting Reference.

Java Web Start Troubleshooting.

Solving Common Component Problems.

Solving Common Layout Problems.

Solving Common Event-Handling Problems.

Solving Common Painting Problems.

Solving Common Problems Using Other Swing Features.



Index.


The JFC Swing Tutorial CD Contents.

Index

Download the Index file related to this title.

Updates

Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership