Java After Hours: 10 Projects You'll Never Do at Work (Paperback)
暫譯: 《Java 下班後:10 個你在工作中永遠不會做的專案(平裝本)》

Steven Holzner

  • 出版商: SAMS
  • 出版日期: 2005-06-18
  • 定價: $930
  • 售價: 5.0$465
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 0672327473
  • ISBN-13: 9780672327476
  • 相關分類: Java 程式語言
  • 立即出貨(限量) (庫存=1)

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

相關主題

商品描述

Description:

Take your Java programming skills beyond the ordinary. Java After Hours: 10 Projects You'll Never Do at Work will make Java your playground with ten detailed projects that will have you exploring the various fields that Java offers to build exciting new programs. You'll learn to:

  • Create graphics interactively on Web servers
  • Send images to Web browsers
  • Tinker with Java's Swing package to make it do seemingly impossible things
  • Search websites and send e-mail from Java programs
  • Use multithreading, Ant and more!

Increase your Java arsenal by taking control of Java and explore its possibilities with Java After Hours.

 

Table of Contents:

Introduction

1. Making Fish Swim in the Multithreaded Aquarium

    Building the Aquarium

    Loading the Fish

    Moving Those Fish

    Double-Buffering the Drawing

    Creating the Fish

    Making the Fish Swim

    Drawing the Fish

    Conclusion

2. Slapshot! The Interactive Hockey Game

    Creating the Rink

    Starting a Game

    Moving Those Pucks

    Getting the Pucks to Bounce Off Each Other

    How the Computer Blocks Pucks

    How the User Blocks Pucks

    Setting the Speed

    Creating the Pucks

    Conclusion

3. The Graphicizer Image-Editing and Conversion Tool

    Creating the Graphicizer Window

    Opening an Image File

    Painting the Image

    Saving an Image File

    Embossing an Image

    Sharpening an Image

    Brightening an Image

    Blurring an Image

    Reducing an Image

    Undoing a Change

    Conclusion

4. Creating Stunning Graphics with Painter

    Creating the Painter Window

    Handling Menu Selections

    Handling the Mouse

    Drawing Some Graphics

    Drawing Lines

    Drawing Ellipses

    Drawing Rectangles

    Drawing Rounded Rectangles

    Drawing Freehand

    Drawing Text

    Drawing the Final Image

    Setting Colors

    Conclusion

5. Chatting on the Internet with the Chat Room

    Creating the Chat HTML Page

    Creating JSP Pages

    Getting the Tomcat Web Server

    Using Some Java in JSP

    Reading Data from HTML Controls in JSP

    Using Request Objects

    Using the Session and Application Objects

    Creating a Hit Counter Using Sessions

    Creating a Hit Counter Using Applications

    Displaying the Current User Comments

    Storing New Comments

    Conclusion

6. Who's There? Logging Access to Your Website with WebLogger

    All About Filters

    Creating a Simple Filter

      Writing the Code

      Configuring the Web Server

    Restricting Access Based on Time of Day

    Restricting Access Based on Password

    Creating WebLogger

      Collecting User Data

      Logging That Data

    Conclusion

7. Running Any Program Via Remote Control with the Robot

    Running the Robot

    Creating the Robot's Window

    Reading the Robot's Commands

    Executing Commands

      Sending Keystrokes

      Sending Mouse Events

      Making the Robot Wait

      Making the Robot Beep

      Taking a Screenshot

    Making the Robot Reappear

    Conclusion

8. Creating a Custom Web Browser in Java: The Browser Project

    Introducing the SWT

    Getting the SWT

    Creating an SWT Application

    Working with SWT Events

    Using SWT Toolbars

    Creating the Browser Project

    Conclusion

9. Typing Across the Internet: The Intercom Project

    Using the Intercom

    Creating Intercom 1

      Connecting to Intercom 2

      Sending Text to Intercom 2

      Reading Text from Intercom 2

    Creating Intercom 2

      Connecting to Intercom 1

      Sending Text to Intercom 1

      Reading Text from Intercom 1

    Conclusion

10. Getting a Graphical Weather Forecast: The Forecaster Project

    Creating the Forecaster JSP

      Getting the ZIP Code

      Gathering the Weather Data

      Graphing the Data

    Creating the Desktop Version

    Conclusion

Index

商品描述(中文翻譯)

**描述:**
提升您的 Java 程式設計技能,超越平凡。
《Java After Hours: 10 Projects You'll Never Do at Work》將使 Java 成為您的遊樂場,透過十個詳細的專案,讓您探索 Java 提供的各種領域,以建立令人興奮的新程式。您將學會:
- 在 Web 伺服器上互動式創建圖形
- 將圖像發送到 Web 瀏覽器
- 操作 Java 的 Swing 套件,使其執行看似不可能的任務
- 從 Java 程式中搜尋網站並發送電子郵件
- 使用多執行緒、Ant 等等!

透過《Java After Hours》,增強您的 Java 工具箱,掌握 Java 並探索其可能性。

**目錄:**
**導言**
**1. 在多執行緒水族館中讓魚游泳**
- 建立水族館
- 載入魚類
- 移動那些魚
- 雙緩衝繪圖
- 創建魚類
- 讓魚游泳
- 繪製魚類
- 結論

**2. 拍擊!互動式冰球遊戲**
- 創建冰場
- 開始遊戲
- 移動那些冰球
- 讓冰球相互彈跳
- 電腦如何阻擋冰球
- 使用者如何阻擋冰球
- 設定速度
- 創建冰球
- 結論

**3. Graphicizer 圖像編輯和轉換工具**
- 創建 Graphicizer 窗口
- 打開圖像檔案
- 繪製圖像
- 儲存圖像檔案
- 壓印圖像
- 銳化圖像
- 亮化圖像
- 模糊圖像
- 縮小圖像
- 撤銷變更
- 結論

**4. 使用 Painter 創建驚人的圖形**
- 創建 Painter 窗口
- 處理選單選擇
- 處理滑鼠
- 繪製一些圖形
- 繪製線條
- 繪製橢圓
- 繪製矩形
- 繪製圓角矩形
- 自由手繪製圖
- 繪製文字
- 繪製最終圖像
- 設定顏色
- 結論

**5. 在網路上與聊天室聊天**
- 創建聊天室 HTML 頁面
- 創建 JSP 頁面
- 獲取 Tomcat 網頁伺服器
- 在 JSP 中使用一些 Java
- 從 JSP 中讀取 HTML 控制項的數據
- 使用請求物件
- 使用會話和應用物件
- 使用會話創建點擊計數器
- 使用應用創建點擊計數器
- 顯示當前用戶評論
- 儲存新評論
- 結論

**6. 誰在那裡?使用 WebLogger 記錄對您網站的訪問**
- 有關過濾器的所有資訊
- 創建簡單的過濾器
- 編寫代碼
- 配置網頁伺服器
- 根據時間限制訪問
- 根據密碼限制訪問
- 創建 WebLogger
- 收集用戶數據
- 記錄該數據
- 結論

**7. 通過機器人遠程控制運行任何程式**
- 運行機器人
- 創建機器人的窗口
- 讀取機器人的命令