The JFC Swing Tutorial (Paperback)

Kathy Walrath, Mary Campione

  • 出版商: Addison Wesley
  • 出版日期: 1999-06-17
  • 定價: $1,880
  • 售價: 8.0$1,504
  • 語言: 英文
  • 頁數: 976
  • 裝訂: Paperback
  • ISBN: 0201433214
  • ISBN-13: 9780201433210
  • 相關分類: Java 程式語言
  • 立即出貨(限量)

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

商品描述


Description

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.

An appendix lists the complete source code for dozens of example applications and applets. The CD-ROM includes Swing 1.1.1, JDK 1.1, the Java 2 Platform, and the hypertext version of all three Java Tutorial books.

Back to Top


Appropriate Courses

Advanced Java Programming.

Back to Top


Table Of Contents

GETTING STARTED WITH SWING.

1. About the JFC and Swing.
2. Compiling and Running Swing Programs.
3. Running Swing Applets.
4. A Quick Tour of a Swing Application's Code.

FEATURES AND CONCEPTS.

5. Components and the Containment Hierarchies.
6. Layout Management.
7. Event Handling.
8. Painting.
9. Threads and Swing.
10. More Swing Features and Concepts.
11. The Anatomy of a Swing-Based Program.

USING SWING COMPONENTS.

12. A Visual Index to Swing Components.
13. The JComponent Class.
14. Using Top-Level Containers.
15. Using Intermediate Swing Containers.
16. Using Atomic Components.
17. Solving Common Component Problems.

LAYING OUT COMPONENTS.

18. Using Layout Managers.
19. Creating a Custom Layout Manager.
20. Doing Without a Layout Manager (Absolute Positioning).
21. Solving Common Layout Problems.

USING OTHER SWING FEATURES.

WRITING EVENT LISTENERS.

22. Some Simple Event-Handling Examples.
23. General Rules for Writing Event Listeners.
24. Listeners Supported by Swing Components.
25. Implementing Listeners for Commonly Handled Events.
26. Summary of Listener API.
27. Solving Common Event-Handling Problems.

WORKING WITH GRAPHICS.

28. Overview of Custom Painting.
29. Using Graphics Primitives.
30. Using Images.
31. Performing Animation.
32. Solving Common Graphics Problems.

CONVERTING TO SWING.

33. Why to Convert.
34. How to Convert.
35. Conversion Resources.
36. Solving Common Conversion Problems.
Appendix A: Code Examples.
Appendix B: Reference.
Index. 0201433214T04062001


Back to Top

商品描述(中文翻譯)

由 Swing 團隊的首席作者開發和共同撰寫的這本書涵蓋了您需要了解的一切,以撰寫使用 Swing 元件的 GUI。《JFC Swing 教程》採用以任務為導向、以示例驅動的方法,介紹基本概念和應用。本書旨在作為一本可從頭到尾閱讀或快速參考的書籍,解釋如何使用每個 Swing 元件、執行佈局、進行基本繪圖,以及將 1.1 AWT 程式轉換為 Swing。本書涵蓋了 Swing 1.1.1。附錄列出了數十個示例應用程式和小程式的完整原始碼。CD-ROM 包含 Swing 1.1.1、JDK 1.1、Java 2 平台以及三本 Java 教程書籍的超文本版本。

適用課程:高級 Java 程式設計。

目錄:
1. 開始使用 Swing
2. 編譯和執行 Swing 程式
3. 執行 Swing 小程式
4. 快速遊覽 Swing 應用程式的程式碼
5. 元件和容器層次結構
6. 佈局管理
7. 事件處理
8. 繪圖
9. 執行緒和 Swing
10. 更多 Swing 功能和概念
11. 基於 Swing 的程式結構
12. Swing 元件的視覺索引
13. JComponent 類別
14. 使用頂層容器
15. 使用中級 Swing 容器
16. 使用原子元件
17. 解決常見元件問題
18. 使用佈局管理器
19. 創建自訂佈局管理器
20. 不使用佈局管理器(絕對定位)
21. 解決常見佈局問題
22. 撰寫事件監聽器
23. 撰寫事件監聽器的一般規則
24. Swing 元件支援的監聽器
25. 實作常見事件的監聽器
26. 監聽器 API 摘要
27. 解決常見事件處理問題
28. 自訂繪圖概述
29. 使用圖形原始碼
30. 使用圖片
31. 執行動畫
32. 解決常見圖形問題
33. 為何轉換為 Swing
34. 如何轉換
35. 轉換資源
36. 解決常見轉換問題
附錄 A:程式碼範例
附錄 B:參考資料
索引