Java After Hours: 10 Projects You'll Never Do at Work (Paperback)

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 After Hours: 10 Projects You'll Never Do at Work》將帶領您將Java編程技能提升到更高的水平。這本書提供了十個詳細的項目,讓您探索Java所提供的各個領域,並建立令人興奮的新程序。您將學會:
- 在Web服務器上交互式地創建圖形
- 將圖像發送到Web瀏覽器
- 使用Java的Swing套件進行調整,實現看似不可能的功能
- 從Java程序中搜索網站並發送電子郵件
- 使用多線程、Ant等等!

通過掌握Java並探索其可能性,您可以增強您的Java技能庫。《Java After Hours》將成為您的指南。

目錄:
- 引言
- 1. 在多線程水族館中讓魚游動
- 構建水族館
- 載入魚
- 移動魚
- 雙緩衝繪圖
- 創建魚
- 讓魚游動
- 繪製魚
- 結論
- 2. Slapshot!互動曲棍球遊戲
- 創建冰場
- 開始遊戲
- 移動冰球
- 讓冰球彈開
- 電腦如何阻擋冰球
- 用戶如何阻擋冰球
- 設置速度
- 創建冰球
-