E-Books: Java™ After Hours: 10 Projects You'll Never Do at Work


Welcome to Java After Hours: 10 Projects You'll Never Do at Work, the book that lets you kick back and take control of Java. This book is not to be taken too seriouslyit's meant to be fun. So relax; you're in the driver's seat here. This is where you get to make Java do some outrageous things for you.

Why Is This Book Unique?

If you're a programmer, too many of the programming books you've read have probably not been much fun at all. In fact, many of them are grim slogs.

Not this one. This is designed to be the computer book for the rest of us who just want to kick back and get a little enjoyment out of what we do everyday.

That's not to say that the programs you're going to find here aren't powerful and that you can't learn some interesting techniques from themyou can. There's all kinds of cool stuff in here, from creating a multithreaded hockey game to an online chat room, from an Internet-based intercom to a temperature forecaster that draws JPEG images online and sends them to browsers.

There's a lot packed in here, and as the book's author, my hope is that at least some of it will make you take a second look and say, "Cool!"

Who Is This Book For?

This book is for you if you're a Java programmer and you're tired of the usual run-of-the-mill stuff.

This book is also for you if you want to learn some of the techniques involved: sending JPEGs back from a web server, grabbing web pages from Java code, creating drop shadows in Java2D, using online filters, controlling any other program robotically, and more.

About the Book's Code

This book contains 10 projects, along with some minor projects used for illustration purposes (one of these subprojects builds an entire web server you can run from your desktop, given an Internet connection and a fixed IP address, which you probably have if you have a broadband connection).

Here's an overview of the code in this book:

Chapter 1: Aquarium A multithreaded fish-swimming project with fish that swim realistically against a bubbly background.

Chapter 2: Slapshot! A multithreaded hockey game that moves. You play against the computer and set the speed. And when you set the speed in the upper 90s, you've got a good chance of losing.

Chapter 3: The Graphicizer An image-editing and conversion tool. This one lets you read in JPG, PNG, or GIF files and save images in JPG or PNG format. You can work with images pixel by pixel, embossing them, sharpening them, brightening them, blurring them, reducing them, and so on. And you can even undo the most recent change.

Chapter 4: Painter Lets you draw your own images from scratchellipses, rectangles, lines, and so on. You can even draw freehand with the mouse. You can also draw each shape open or filled, using a texture fill, a solid color fill, or a gradient fill. You can draw text. You can give shapes a drop shadow, or make them transparent. You can draw using thin lines or thick lines. You can set the drawing color. And not only can you save your work when done, you can also read in images and work on them, annotating them with text or adding your own graphics.

Chapter 5: The Chat project In this project you create your own private Internet chat room that will keep you in touch with anyone over the Internet. All you need is Internet access and a Java-enabled web server. You can have as many people in your chat room as you like. What they type, you can see, and what you type, they can see. Type all you likeall you're paying for is the local Internet connection.

Chapter 6: WebLogger Log access to your website. This project lets you log users who access your website by access time, authentication type, username (if they've logged in), user IP address, the URL they accessed on your site, their browser type, the milliseconds they were there for, and so on. All without their knowledge.

Chapter 7: The Robot project Another cool one. This project lets you control any other program by remote control; just tell it what to do. You can send text to the other program you're controlling. You can use the Alt and Ctrl keys. You can send tab characters, the Enter key, or the Esc key. You can also use the mousejust enter the screen location (in pixels) where you want the mouse to move to. Then click the mouse, right-click it, or double-click it. You can also take screen captures. Want to automate working with any program? The Robot will do it.

Chapter 8: The Browser project This project lets you create a fully featured browser (subclassing Microsoft Internet Explorer) in your Java applications.

Chapter 9: The Intercom project This project lets two people type across the Internet. You just start up the project, connect with the click of a button, and you've got your own connection: Everything you type into the Intercom, the other use can see, and everything the other user types, you can see. This one is a client/server application and connects directly across the Internet using its own protocolunlike the Chat project, no Java-enabled web server is needed here at all.

Chapter 10: The Forecaster project Displays a four-day temperature forecast for your area, starting with today's high and low temperatures. All you've got to do is to tell the Forecaster your ZIP Code, and it'll give you the forecast by reading its data from the National Weather Service and sending a JPEG image from the server back to the browser.

You can download all the code used throughout this book from the Sams website at http://www.samspublishing.com. Enter this book's ISBN (without the hyphens) in the Search box and click Search. When the book's title is displayed, click the title to go to a page where you can download the code.

For Download:

Sponsored Links

E-Books

Ubuntu
Ubuntu Hacks Tips and Tools for Exploring Using and Tuning Linux
Ubuntu®Linux® TOOLBOX
Beginning Ubuntu LTS Server Administration
ASP.NET
Foundations of ASP.NET AJAX
AJAX
Foundations of ASP.NET AJAX
Solaris
System Administration Guide, Volume I
UNIX
UNIX Programmer's Manual
UNIX® Network Programming Volume 1
SunSystems UNIX Oracle Platforms Manual
System Administration Guide, Volume I
BSD UNIX® TOOLBOX
BSD
BSD UNIX® TOOLBOX
SAP
SAP Basis Installation on UNIX: Oracle Database
C
Sams Teach Yourself C in 24 Hours
Apache
Beginning PHP5, Apache, and MySQL® Web Development
Apache HTTP Server Configuration
Professional LAMP
The Definitive Guide to Apache mod_rewrite
Architecture
Outstanding Wood Buildings
C++
The Visual C++ Language for .NET 3.5
Advanced CORBA® Programming with C++
C#
E-Books: Step By Step Microsoft Visual C# 2005
Step By Step Microsoft Visual C# 2008
C# Yellow Book
Essentials of Object-Oriented Programming
Acclerated C# 2008
Hack
The Oracle Hacker's Handbook
Hacker Highschool: Complete Table of Contents and Glossary
Hacker Highschool: Lesson 1 Being a Hacker
Hacker Highschool: Lesson 2 Basic Commands in Linux and windows
Hacker Highschool: Lesson 3 Ports and Protocols
Hacker Highschool: Lesson 4 Services and Connections
Hacker Highschool: Lesson 5 System Identification
Hacker Highschool: Lesson 6 Malware
Hacker Highschool: Lesson 7 Attack Analysis
Hacker Highschool: Lesson 8 Digital Forensics
Hacker Highschool: Lesson 9 E-mail Security
Hacker Highschool: Lesson 10 Web Security and Privacy
Hacker Highschool : Lesson 11 Password
Hacker Highschool : Lesson 12 Internet legalities and ethics
Hack Attacks Revealed
Html
The Essential Guide to CSS and HTML Web Design
HTML Css in Pictures
Beginning HTML with CSS and XHTML
HTML, DHTML and JavaScript
HTML 4 for Dummies
J2EE
J2EE Developer's Handbook
Java
Java Data Access - JDBC, JNDI, and JAXP
Java™ After Hours: 10 Projects You'll Never Do at Work
Data Structures and Algorithms in Java
Data Structures & Algorithms in Java
Professional Hibernate
Core Servlets and JavaServer Pages
JavaScript
JavaFX™ Script
The Book of JavaScript 2nd Edition
Making Use of JavaScript
JavaScript Programming For the Absolut Beginner
Simply JavaScript
Pro JavaScript Techniques
Linux
Linux Security
Ubuntu Hacks Tips and Tools for Exploring Using and Tuning Linux
Ubuntu®Linux® TOOLBOX
Beginning Ubuntu LTS Server Administration
Professional LAMP
LINUX System Programming
MatLab
Introduction to Simulink® with Engineering Applications
Oracle
The Oracle Hacker's Handbook
SunSystems UNIX Oracle Platforms Manual
Essential Unix (and Linux) for the Oracle DBA
Oracle Database 10g PL/SQL Programming
Migrating Forms Applications from Forms 6i
Oracle9i: Advanced SQL
Advanced SQL Functions in Oracle 10g
Expert Oracle Database 10g Administration
Expert Oracle Database Architecture
Oracle Database 11g PL/SQL Programming
Pascal
Turbo Pascal 5.5 Object Oriented Programming Guide
Object Pascal Language Guide
PHP
Pro PHP XML and Web Services
Build Your Own Database Driven Website using PHP & MySQL
Beginning PHP5, Apache, and MySQL® Web Development
SQL
Microsoft SQL Server 2008 A Beginner's Guide
Build Your Own Database Driven Website using PHP & MySQL
Beginning PHP5, Apache, and MySQL® Web Development
Professional Hibernate
Professional LAMP
Beginning SQL
Microsoft® SQL Server™ 2005 Developer’s Guide
Oracle Database 10g PL/SQL Programming
Advanced SQL Functions in Oracle 10g
Professional SQL Server 2000 Database Design
Microsoft SQL Server 2005 for Dummies
Visual Basic
Step By Step Microsoft Visual Basic 2008
Visual Basic 6
Visual Basic for Applications Programming Excel
Learn Visual Basic 6.0
Database Access with Visual Basic Jeffrey Mcmanus
Visual Basic 6 Black Book
Web
11 Steps to create a successful Web Site
Pro PHP XML and Web Services
Beginning PHP5, Apache, and MySQL® Web Development
Wireless
Webmaster’s Guide to the Wireless Internet
Wireless Communications and Networking
Certified Wireless Network Administrator
Certified Wireless Security Professional
Facebook
Building Facebook™ Applications
Google
Building Your Business with Google
Network
Wireless Communications and Networking
Networking with Microsoft Windows Vista
Absolute Beginner's Guide to Networking, Fourth Edition
NetBackup
VERITAS NetBackup™ 6.0 Installation Guide
VERITAS NetBackupTM 6.0 System Administrator’s Guide
VERITAS NetBackup™ 6.0 for Oracle System Administrator’s Guide
Skype
Skype For Dummies
Microsoft Office
Step By Step: Microsoft Access 2003
XOOPS
Building Websites with XOOPS A step-by-step Tutorial
Windows
Microsoft Windows Group Policy Guide
Microsoft Windows Registry Guide
Windows Vista
Networking with Microsoft Windows Vista
Internet
Microsoft Internet Security and Acceleration (ISA) Server 2004 Unleashed
SEO
Get to the Top on Google

Yahoo Tools

YTK Pro 1.5.0.494
Yah Earth Version 4
Yhook 542
Ymsgr 9.0.0.1912
Yahoo ACE V1.0.0.569
Room Destroy V 59 Updated by Strange Shahn
Room Domination 8.0
Yahaven Version 2.5.9
Y!safe Beta Yahoo Chat Client
Pinoy Room Conquer V9
Y!hook 5.26 Chat Client
Pinoy Room Conquer V8
Shit Party Yahoo
Pinoy Room Conquer v7 Yahoo Client
New Chat Killer V30
Y-Lions Multi Room Message & Multi Room Pm Spammer
YahooACE V1.0.0.569 By Brian Meeks
New Yahelite for Download
Super Spy v28
Free link download Chat Supremecy V4.4.0
YTK Pro
Mencuri Webcam dengan Yintai
No5
Pidgin multi-protocol Instant Messaging
Konfigurasi Pidgin untuk Room Yahoo Messenger
Install Pidgin 2.3.0
Easy Chat Room Yahoo with yahelite
Ytk Pro
Download YTK Pro
yam
Download Yam
Room Domination 7.0
Chat Killer V24
Room Destroy
Elite Chat
Pidgin 2.4.0
Chat Killer V29
Chat Killer V27
Chat Killer V28
Yintai
Scan Yahoo Id Name Scanner By Slayer
Fast N Ez Scanner
Extreme Name Scanner
Name Scan By Killer
Crack Id Yahoo Messenger CrackerDotNet Beta
Boon Dogs Kleptomaniac
Bulldozer 1.3
Consumption-1.02
Viper unleashed
CrackHouse Vengeance v1.0
Illy Ownage
Stfu & Crack By Hypn
Underworld Cracker
Vipra Ncc V2.0
Vipra Ncc V5.0
Dragonz WaR Cracker
Proxy Master V3.0 By WALT
Proxy Grab V.06
Y! Buddy Controller
Proxified
Cap Size Id Scanner
Ncc The Bitch V1.0.1
Viet ncc v2.0 Cracker Yahoo Id
Confirmed Cracker
Menghapus id yahoo messenger
Y Server Control V3 For Crack Yahoo Id
Kriptonite v3 for Download Crack Id Yahoo messenger
Free Download EnrangedX
Free Download scream 3.0
Y! Jacker Proxy Cracker
Free Download Heetseeker
Create Id Boot YCC Yahoo Bot Maker
Yahoo Swat Team id Maker
The Illusionist Yahoo Id Maker
Fast ID Maker 10
Y Lions Bots Maker
Viprasys ID Creator
CP BotMaker Reborn
I Robot Creation
Ascii id maker
YCC Bot Maker V1.2
Fast ID Maker 8.0
Puddys-World Botmaker v 4+4.1
Create Id Yahoo Revoxlu3s Big MakeR Yahoo Id
BT internet maker by Kadmiwe
The Enigma 1.6 Yahoo Id Maker
Tutorial Create id Yahoo @kimo.com
New Create Yahoo id@rocketmail.com
Free Download EgY Booter
Free All Star List Generator
id@yahoo.cn
id@btinternet.com
Id@y7mail.com
Btinternet Maker
Proxy Multi Socks Scanner
Port Spliter
Spider HTTP Proxys Get V1.0
6 Sic 6 Range Scanner
Zdc socks scaner
Proxy Switcher Pro
Proxy
Proxy Pro by Arachnid-X
Proxy Grabber 5.21
Leech V3 Update and Fixed by _PLaNeT___
Heaven Socks Scanner v1.0
Proxy Grabber 5.21
Proxy Finder v2.0
Proxyfire Master Suite FREE 1.22
Yahoo ! Club - Cracker
Anonymous Friend v2.9
Palestine Proxy Graber
Voice Nepal Yahoo locker Mic
Y! Messy Voice v1
Super Bike Mike Lock v1.4
Power Mic Yahaven
Power Mic Yahelite
Power Mic For Yazak
Win Amp Status
MnT Magnum Voice 2.0
The Sniper 3.0 by FLZ
Donkey Punch Y!Beep
The Sniper 3.0
Dark VOx
iTunes Status for YIM!9
WinAmp Status Changer
Download Untouchable Vox 1.2
Ghost Room
Bomb Vox2
Yahvox Domination V3
Super Mic Locker
Vc guard Beta
Yah Room Vox By RMH
Evil Voice for Room Yahoo
Soft Vox V6 Good Voice Domination on Yahoo Room
Download Voice Domination Mass Iggy 3.0
Webcam Webcam attack V 1.0
Web Cam Attack
Cam Studio
1st Screen Recorder
Oripa Yahoo Web Cam Recorder
Unlocker Id Yahoo Unlocker Id Yahoo
Delete Yahoo Id Yahoo Terminate Yahoo Id / Delete Yahoo id
Lock id Locker Y ID 4.0
Super ID Locker v2.0
7778QU-KO Lock Yahoo Id
Account Locker V3.0
Lock The Homo
G.T.S Go To Sleep Id Locker
Shit Locks
Secret Account Locker Beta
Y! Spy Account Locker
Hackahoo Locka Focka v1.3
Y! Multi Locker by Killer Keygen
Dcs Paradise Dead Lock
Y! Spy Account Locker
Lamer Locker V2 Lock Yahoo Id
Shit Locks to Lock Yahoo Id
Yaho0o's Super Account locker
ID Locker to Lock Yahoo Id
Spammer For Simple PM Spammer For Yahoo Messenger
Pm Spammer WD Pm Spammer
Yahoo PM Spammer Chambers Owns Mass
Server Yahoo Server Scan Elite V.1 and List Update Server
Tools Y Fighter pm Spammer
Hellz Pass Changer
Dark Check v1.0
Yahoo Messenger Multi Patch
IP Force
Invisible Yahoo Messenger
Chambers Multi room Name Grabber V1.2
FX RooM LaGGeR V1.0
Check Victim Location With IP
Matrix Annoyer
I Killer by Alikhoub
Nice Status
W@ Yahoo Multi Tab V1
Multi Yahoo
Client Detection
Prixi Status Changer V1.0
Alien-warez Y!M Multi Maker v 1.0
Yahoo UnlockV1.2
x-netstat-professionalv55-download
Voodo Bot Tester v.1
Register OCX and DLL Tool
ViCiOuSPassGen2.0
Bluriee-Password Generator
Scanneration 2.0
Scanneration
Y-S ID Leecher 3.0
Web Browser Download Mozilla Firefox 3
Download SeaMonkey Browser
Apple - Safari Browser for Windows

Booter

BlackWidows Dog Bytes boot Yahoo
My Final Card boot for Yahoo
Y!-ir=evlis Booter boot for Yahoo
Tigerus Vi Boot For Yahoo
ECT V 2.0 Boot For Yahoo
Second Boot Exploit boot for Yahoo
Wanna Be Bot all boot for yahoo
Room Eviction Nice Room spamer
Muridnakal SIlent Super Booter V2
Ytunnel smasher boot for tunnel
The Therminator V2 boot for yahoo
S3rial Killer Reborn V1 boot Yahoo
Manuel Ownz by S3rial Kllers boot for Yahoo
Caution boot for yahoo or chat client yahoo
S3rial Final Example boot for yahoo
Yah Mart Total Overload boot for yahoo or chat client
Red Hoot Yahoo Boot or chat client yahoo
Vamp Angel Client Killer boot for yahoo or chat client
Elite V1.0 boot for Yahoo messenger or Chat client
God Of Boot Warr Version 1.0.0 boot for Yahoo
The green hornet Boot for Yahoo
Pm Nikker V1 Boot for Yahoo
Counter attack v10 Boot for Yahoo
Free download 30000 Destroyer Packets
Download Quick Kill 5.0.5 Boot Yahoo
Twisted Fury v2 Boot For Yahoo
Buffer OverLoad V3 Boot For Yahoo
Download Buffer OverLoad V3 boot yahoo
Knobb Muridnakal Freeze.V1 Boot Yahoo
The Booter boot for Yahoo and chat Client
DarkStar Multy Hitter V2 boot Yahoo
Download Kch Bites Back V1 boot for yahoo
Download Floodgate Boot for Yahoo
Download Dark Start Multy Hitter V2
Download Boot War yahoo Messenger
Download Crooked Convict Boot Yahoo
Download Operation nb V2
Free Haze Reborn boot
RAID 5000 Boot Login for client or Yahoo messenger
Boot Red Rover boot for Yahoo messenger
PM Pandemonium boot for Yahoo or chat client yahoo
Awakening Boot yahoo messenger
Y-Soft Super DC 1.0 multi bots login
Pick n Mix Boot fo Yahoo
Remi`s Shooting Machine Boot for Yahoo
Master Dc Boot for Yahoo
Saints Revenge Boot for Yahoo
Anarkis Boot for Yahoo
5 Stars Boot For Yahoo
Others Boot >>>>