Home > Store > Programming > Java
Java 2 From Scratch
- By Steven Haines
- Published Oct 22, 1999 by Que. Part of the From Scratch series.
- Copyright 1999
- Dimensions: 7.375 X 9.125
- Pages: 704
- Edition: 1st
- Book
- ISBN-10: 0-7897-2173-2
- ISBN-13: 978-0-7897-2173-0
Register your product to gain access to bonus material or receive a coupon.
Annotation
Java 2 From Scratch walks you through the analysis, design and implementation of a functioning application using Java 2. Learn all the critical programming concepts and techniques associated with the language in the context of creating a functioning Stock Market Tracker/Analyzer. Each chapter builds on the previous with a casual tone, in-depth examples, and detailed steps to ultimately create a working stock market tracker. Key areas addressed are user interface design, SWING user interface, Internet communication, file I/O, painting/drawing, and brief introductions to JDBC and RMI.
PTR Overview
Java 2 From Scratch is designed to walk novice programmers through the analysis, design and implementation of a functioning application using Java 2. Readers will learn all the critical programming concepts and techniques associated with the language in the context of creating a functioning Stock Market Tracker/Analyzer. Each chapter builds on the previous with a casual tone, in-depth examples, and detailed steps to ultimately create a working stock market tracker. The key areas this application addresses are: (1)User Interface Design - basic concepts and all of the AWT objects (text boxes, edit boxes, push buttons) (2)SWING User Interface - the actual application will be built using the SWING libraries(3)Internet Communication - how to download data from the Internet (4)File I/O - persisting stock symbols, statistics and user information (5) Painting/Drawing - drawing graphs of stock performances (6)Brief introduction to JDBC - persisting stock information in a database.
User Level
Steve Haines is currently a software engineer at Wonderware Corporation where he is contributing his development skills to a new COM based distributed architecture for their forth-coming product line. Prior to that he worked in the online gaming arena at ENGAGE games online developing multiplayer Internet and America Online based games. He attained a Bachelors of Computer Science at California State University, Fullerton and is now completing his Masters of Computer Science with focus on Creative Technologies and Multimedia at the University of Southern California. His publication experience includes writing for SAMS C++ Unleashed, SAMS Teach Yourself C++ in 21 Days and SAMS Teach Yourself Java in 21 Days and acting as a technical editor for various Java, C++, Internet, and Game Development books for both Macmillan Computer Publishing and Addison Wesley.
Audience
Jesse Liberty's From Scratch series is aimed at beginning Java programmers, programmers from another language, students and weekend hobbyists interested in learning how to create a functioning application using Java technology.
PTR Bullets
- Learn Java 2 concepts, techniques, and syntax in the context of creating a functioning application From Scratch
- Start programming right away, creating a Stock Market Tracker/Analyzer
- Jesse Liberty is the Series Editor, with more than 250,000 programming titles sold
Product Author Bios
Steve Haines is currently a software engineer at Wonderware Corporation where he is contributing his development skills to a new COM based distributed architecture for their forth-coming product line. Prior to that he worked in the online gaming arena at ENGAGE games online developing multiplayer Internet and America Online based games. He attained a Bachelor¿s of Computer Science at California State University, Fullerton and is now completing his Masters of Computer Science with focus on Creative Technologies and Multimedia at the University of Southern California. His publication experience includes writing for SAMS C++ Unleashed, SAMS Teach Yourself C++ in 21 Days and SAMS Teach Yourself Java in 21 Days and acting as a technical editor for various Java, C++, Internet, and Game Development books for both Macmillan Computer Publishing and Addison Wesley.
FAQs
Question 1: How can I get a function of getting an HTML page (InternetManager.class) to function in an applet and have access to an HTML page?
Solution 1: The problem you are having is with respect to Java's sandbox security model. By default an applet can only read from server that it was downloaded from - so if your URL is:
http://www.mycompany.com
Then your applet can only make a socket connection (or URLConnection) back to www.mycompany.com.
The solutions to this are either:
(1) Make the connection on the backend (e.g. inside a servlet) and pass the results to your applet
(2) Modify the security settings to permit your applet to communicate with other servers (I haven't done this in years so I don't recall off hand how to do that - I can look it up if you are interested), but the problem is that each of your customers will have to adjust their browser settings to trust all applets with more privileges than they probably should. Unless this is an Intranet applet I would not recommend this approach.
So my suggestion is to make the URL connection from your web server's backend - either servlet or create your own server that your applet can talk to (see the java.net.ServerSocket class for more information on developing a server).
Question 2: Where is the Source code, FAQ, and related materials for this book?
Solution 2: As part of the author's ongoing effort to support his books, He now offers a FAQ, source code and related materials on his web site: http://www.LibertyAssociates.com. Please click on books & resources. While you are there, you may want to sign up for his on-line support discussion center:
http://www.delphi.com/LibertyBooks
Question 3: This book says that the Java Development Kit is included on the CD. Appendix A is "Setting up the Java 2 SDK" and says that there should be a file JDK1_2_1-win.exe on the CD which is the installation for the Java Development Kit. However, it is not there.
Solution 3: Appendix A refers to the installation of the Java 2 SDK, which is not included on the CD-ROM but is available at no charge from Sun Microsystem's website at the following URL:
http://java.sun.com/products/jdk/1.2
We did not include the JDK with the book as the versions change frequently, but in chapter 1 (page 9) there is a section "So How Do I Get Started" that points you to this URL.
If you do not have access to the internet and are unable to download the JDK, then we do have a CD that we could send to you, that contains JDK 1.2. If you'd like to have the CD, send a return email and include your name, mailing address, and telephone number.
If you'd rather get a book refund, contact Customer Service at 800-858-7674.
Java 2 From Scratch walks you through the analysis, design and implementation of a functioning application using Java 2. Learn all the critical programming concepts and techniques associated with the language in the context of creating a functioning Stock Market Tracker/Analyzer. Each chapter builds on the previous with a casual tone, in-depth examples, and detailed steps to ultimately create a working stock market tracker. Key areas addressed are user interface design, SWING user interface, Internet communication, file I/O, painting/drawing, and brief introductions to JDBC and RMI.
Source Code
Source Code
Corrected source code from chapter 9 - 5.43kb -- ch9fix.zip
Corrected source code from chapter 10 - 6.61kb -- ch10fix.zip
Related Articles
Container Managed Persistence (CMP) versus Bean Managed Persistence (BMP) Entity Beans
Developing a Bean Managed Persistence (BMP) Entity Bean
Developing a Container Managed Persistence (CMP) Entity Bean
Developing a Stateless Session Bean
Java Menus #1: Java Swing and Menus
Java Menus #2: Integrating Menus in JWord
Swing Solutions: Integrating Menus in JWord
Technology
The massive growth of the Internet and the WWW leads us to a completely new way of looking at development and distribution of software. To live in the world of electronic commerce and distribution, Java technology enables the development of secure, high performing, and highly robust applications on multiple platforms in heterogeneous, distributed networks. To function within increasingly complex, network-based environments, programming systems must adopt object-oriented concepts. Java technology provides a clean and efficient object-based development platform.
|
13 of 13 people found the following review helpful
This review is from: Java 2 From Scratch (Paperback)
This is one of the best books I have seen which covers the basics of Object Oriented development, program design and actual Java coding in such an easy to read style. I read the first five chapters from a hospital bed but did not feel lost by not having my PC to try out the examples as they were so well documented. Using a single example program throughout the book provides excellent continuity of purpose as the chapters unfurl but may put some people off buying the book if the end product (a stock market tracker) is of no interest to them - I would say that the techniques are more important than the program - I don't really want a tracker but I couldn't put the book down once I had started to read it. Many of the techniques shout out for further examples but these are freely available from numerous sites on the web - the book is large enough as it is. I would recommend this book to anyone "starting from scratch" as a good all-round primer.
13 of 13 people found the following review helpful
By Steve (Dallas Texas, USA) - See all my reviews
This review is from: Java 2 From Scratch (Paperback)
This is a great book for what it is. It is definitely not a beginner-level, just getting into java book, but more for experienced OO programmers who want to learn how to develop applications in Java. I have been looking for an intermediate book like this for a while. This book walks you through the process of how to develop a real application (a stock market tracker/analyzer), and ties it all together nicely from analysis and design, through implementation. The author gives good insight on his thought processes each step of the way. I like the fact that he uses the internet from which to pull off the stock quotes. Hopefully, more authors will follow this lead and give us some example applications that we can use in the real world, instead of a bunch of toy code snippets. The only drawback that I can see to this book is that it stops short as far as using JDBC in a Swing application. I wish the author would have added an extra chapter or two that covered binding Swing...
Read more
6 of 6 people found the following review helpful
This review is from: Java 2 From Scratch (Paperback)
I disagree with those who say this is not good for beginners. I'm the type that I can't learn by just reading and doing aimless examples. This book holds my interest because everything is in the context of "We need to know this because it'll be in our application later..."It's really easy reading because it's written sorta like this really cool professor I used to have used to speak. I've gone through a couple of different Java books. This one is the most helpful because there is CONSTANT reinforcement of the basics throughout the whole book. There are better, more realistic explanations of where things are derived from, and architecture and design concepts. I think this book is TOTALLY for beginners. Even though you are writing a swing app, as a beginner, you still need to know loops, datatypes, exception handling, etc., no matter what you end up doing with Java, and this book takes you through all of it. I think it's best for beginners who are... Read more |
› See all 28 customer reviews...
Book
This product currently is not for sale.
Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.

