The JFC Swing Tutorial: A Guide to Constructing GUIs, 2/e (Paperback)
暫譯: JFC Swing 教程:構建 GUI 的指南,第二版 (平裝)

Kathy Walrath, Mary Campione, Alison Huml, Sharon Biocca Zakhour

  • 出版商: Addison Wesley
  • 出版日期: 2004-02-24
  • 售價: $2,750
  • 貴賓價: 9.5$2,613
  • 語言: 英文
  • 頁數: 784
  • 裝訂: Paperback
  • ISBN: 0201914670
  • ISBN-13: 9780201914672
  • 已絕版

買這商品的人也買了...

商品描述

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.

商品描述(中文翻譯)

目錄:

前言。

開始之前。

1. 開始使用 Swing。

關於 JFC 和 Swing。

編譯和運行 Swing 程式。

問題與練習。

範例程式。

2. 透過範例學習 Swing。

範例一:你的第一個 Swing 程式。

範例二:SwingApplication。

範例三:CelsiusConverter。

範例四:改進版 CelsiusConverter。

範例五:LunarPhases。

範例六:VoteDialog。

總結。

問題與練習。

範例程式。

3. 使用 Swing 元件。

Swing 元件的視覺索引。

在 Swing 元件中使用 HTML。

使用頂層容器。

使用模型。

JComponent 類別。

使用文字元件。

總結。

問題與練習。

範例程式。

4. 在容器內佈局元件。

佈局管理器的視覺指南。

使用佈局管理器。

佈局管理的運作方式。

創建自定義佈局管理器。

不使用佈局管理器(絕對定位)。

總結。

問題與練習。

範例程式。

5. 編寫事件監聽器。

一些事件處理範例。

編寫事件監聽器的一般資訊。

Swing 元件支援的監聽器。

監聽器 API 表。

總結。

問題與練習。

範例程式。

6. 執行自定義繪圖。

Swing 元件的顯示方式。

繪圖概念介紹。

實現自定義元件。

總結。

問題與練習。

範例程式。

7. 元件參考。

如何製作 Applet。

如何使用按鈕。

如何使用核取方塊。

如何使用顏色選擇器。

如何使用下拉選單。

如何製作對話框。

如何使用編輯器面板和文字面板。

如何使用檔案選擇器。

如何使用格式化文字欄位。

如何製作框架(主視窗)。

如何使用內部框架。

如何使用標籤。

如何使用分層面板。

如何使用列表。

如何使用選單。

如何使用面板。

如何使用密碼欄位。

如何使用進度條。

如何使用單選按鈕。

如何使用根面板。

如何使用滾動面板。

如何使用分隔符。

如何使用滑桿。

如何使用數字選擇器。

如何使用分割面板。

如何使用標籤面板。

如何使用表格。

如何使用文字區域。

如何使用文字欄位。

如何使用工具列。

如何使用工具提示。

如何使用樹狀結構。

8. 佈局管理器參考。

如何使用 BorderLayout。

如何使用 BoxLayout。

如何使用 CardLayout。

如何使用 FlowLayout。

如何使用 GridBagLayout。

如何使用 GridLayout。

如何使用 SpringLayout。

9. 其他 Swing 特性參考。

如何使用動作。

如何支援輔助技術。

如何使用邊框。

如何使用拖放和資料傳輸。

如何使用焦點子系統。

如何使用圖示。

如何使用鍵綁定。

如何設定外觀和感覺。

如何使用執行緒。

如何使用計時器。

10. 事件監聽器參考。

如何編寫動作監聽器。

如何編寫游標監聽器。

如何編寫變更監聽器。

如何編寫元件監聽器。

如何編寫容器監聽器。

如何編寫文件監聽器。

如何編寫焦點監聽器。

如何編寫內部框架監聽器。

如何編寫項目監聽器。

如何編寫鍵盤監聽器。

如何編寫列表資料監聽器。

如何編寫列表選擇監聽器。

如何編寫滑鼠監聽器。

如何編寫滑鼠移動監聽器。

如何編寫滑鼠滾輪監聽器。

如何編寫屬性變更監聽器。

如何編寫表格模型監聽器。

如何編寫樹擴展監聽器。

如何編寫樹模型監聽器。

如何編寫樹選擇監聽器。

如何編寫樹將擴展監聽器。

如何編寫可撤銷編輯監聽器。

如何編寫視窗監聽器。

附錄。故障排除參考。

Java Web Start 故障排除。

解決常見元件問題。

解決常見佈局問題。

解決常見事件處理問題。

解決常見繪圖問題。

解決使用其他 Swing 特性的常見問題。

索引。