9780789721730

Java 2 from Scratch

by
  • ISBN13:

    9780789721730

  • ISBN10:

    0789721732

  • Format: Paperback w/CD
  • Copyright: 1999-01-01
  • Publisher: Que

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $10.00
  • Buy Used
    $29.99

    USUALLY SHIPS IN 2-4 BUSINESS DAYS

Supplemental Materials

What is included with this book?

Summary

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.

Table of Contents

Introductionp. 1
Java Development Overviewp. 5
Why Java?p. 5
Why Object-Oriented Development?p. 6
Benefitsp. 7
Java History Lessonp. 8
Java Versionsp. 8
What Is Java 2?p. 9
So How Do I Get Started?p. 9
Applet Versus Applicationp. 10
The Stock Tracker Applicationp. 11
Getting Up and Runningp. 13
Your First Java Applicationp. 14
Online Documentationp. 20
Summaryp. 21
Next Stepsp. 23
Design Fundamentalsp. 25
When to Spend Time on Designp. 25
Completenessp. 26
Expandabilityp. 27
Maintainabilityp. 28
Requirementsp. 28
Design Methodologiesp. 28
Waterfall Methodp. 28
Iterative Processp. 30
Use Casesp. 33
Class Diagramsp. 38
Interaction Diagramsp. 40
User Interface Designp. 42
Summaryp. 44
What's Next?p. 44
Designing the Stock Tracker Applicationp. 45
The Visionp. 46
Brainstormingp. 47
Developing Use Casesp. 48
Main Featuresp. 48
Startupp. 50
Shutdownp. 51
Refining Use Casesp. 51
Main Featuresp. 51
Startupp. 68
Shutdownp. 69
Deriving Clasesp. 72
Brainstormingp. 72
StockDatap. 74
Portfoliop. 77
PortfolioManagerp. 78
InternetManagerp. 79
HTMLParserp. 80
StockQuoteRetrieverp. 82
HistoricalDataManagerp. 82
Timerp. 83
GraphingManagerp. 84
CSVManagerp. 85
FileManagerp. 86
Applicationp. 86
Summaryp. 87
What's Next?p. 87
User Interface Design with AWTp. 89
Abstract Window Toolkit (AWT)p. 90
Labelsp. 90
Buttonsp. 100
Text Fieldsp. 103
Text Areasp. 106
Check Boxesp. 110
Choice Listsp. 114
Layout Managersp. 117
Summaryp. 143
What's Next?p. 144
User Interface Design with Swingp. 145
Introduction to JFC and Swingp. 146
Structure of a Swing Applicationp. 147
Setting Up a Swing Applicationp. 150
Importing the Swing Packagesp. 151
Setting Up a Heavyweight Containerp. 152
Setting Up a Lightweight Containerp. 153
Building User Interfaces Using Componentsp. 155
Adding Components to the Lightweight Containerp. 155
JComponentp. 156
Labelsp. 158
Text Componentsp. 166
Caret Changesp. 166
Commandsp. 166
Key Mapsp. 166
Model/View Splitp. 167
Location Informationp. 168
Undo/Redo Supportp. 168
Thread Safetyp. 168
Text Fieldsp. 169
Text Areasp. 180
Buttonsp. 186
JButtonp. 186
JRadioButtonp. 187
JCheckBoxp. 188
A Button Examplep. 189
Listsp. 194
Tablesp. 202
Panesp. 210
Tabbed Panesp. 210
Scroll Panesp. 214
Split Panesp. 214
Summaryp. 218
What's Next?p. 219
Handling Events in Your User Interfacep. 221
What Are Events?p. 222
Types of Eventsp. 222
Event Methodologyp. 223
JFC Event Listenersp. 225
JFC Eventsp. 226
Action Eventsp. 228
Adjustment Eventsp. 233
Focus Eventsp. 238
Item Eventsp. 243
Keyboard Eventsp. 247
Mouse Eventsp. 252
Mouse Motion Eventsp. 259
Window Eventsp. 263
Summaryp. 265
What's Nextp. 265
Building the Stock Tracker User Interfacep. 267
Designing the Stock Tracker User Interfacep. 267
Paper Designp. 269
Java Componentsp. 272
Nested Layout Managersp. 277
Panelsp. 279
Implementing the Stock Tracker User Interfacep. 280
Stock Table Panelp. 280
Portfolio Totals Panelp. 296
Stock Table Tab Panelp. 298
Ticker List Panelp. 308
Stock Graph Panelp. 311
Graph Tab Panelp. 315
Stock Tab Panelp. 321
Portfolio List Panelp. 324
Main Menup. 329
Stock Applicationp. 338
Summaryp. 344
What's Next?p. 344
Implementing Portfoliosp. 345
Component Relationshipsp. 346
Implementation Decisionsp. 347
File Strategyp. 347
Portfolio File Managementp. 351
What Is a Data Structure?p. 352
Data Structures Provided with Javap. 353
Arrayp. 355
Vectorp. 356
Stackp. 356
Linked Listp. 356
Setp. 357
Mapp. 357
Hashtablep. 357
Treesp. 358
Our Strategyp. 359
Package Strategyp. 360
Stock Datap. 362
Portfoliop. 374
Portfolio Managerp. 381
Integrating Classes into the User Interfacep. 390
Portfolio List Panelp. 391
Stock Table Panelp. 392
Ticker List Panelp. 399
Graph Tab Panelp. 401
Main Menup. 401
Stock Applicationp. 402
Summaryp. 410
What's Next?p. 411
Implementing the Stock Quote Retrieverp. 413
Component Relationshipsp. 414
Implementation Decisionsp. 415
Internet Strategyp. 415
HTML Parsing Strategyp. 421
Threading Strategyp. 422
Event Notification Strategyp. 425
Package Strategyp. 431
Internet Managerp. 432
HTML Parserp. 435
Stock Quote Retrieverp. 442
Integrating the New Classes into the User Interfacep. 454
Stock Data Updatesp. 454
Portfolio Manager Updatesp. 455
Stock Application Updatesp. 461
Summaryp. 463
What's Next?p. 463
Retrieving Stock Quotes on a Fixed Time Intervalp. 465
Use Casesp. 465
UC10: Set a Timer to Retrieve Stock Quotes at a Specific Intervalp. 466
UC11: Retrieve Stock Quotes at the Set Intervalp. 466
Timer Responsibilitiesp. 467
Component Relationshipsp. 467
Implementation Decisionsp. 468
Swing Timerp. 468
Configuring the Timerp. 470
Building the Timer Configuration Dialog Boxp. 472
Integrating the Timer with the User Interfacep. 476
Summaryp. 480
What's Next?p. 480
Implementing the Historical Data Managerp. 481
Use Casesp. 481
Implementation Decisionsp. 482
Data Sourcep. 482
Modified CSV Parsingp. 483
Persistence Strategyp. 486
Existing Componentsp. 489
Historical Data Managerp. 490
Historical Data Testerp. 499
Summaryp. 504
What's Next?p. 504
Graphing Historical Datap. 505
Use Casesp. 505
Component Relationshipsp. 506
Painting Primerp. 507
Implementation Decisionsp. 509
Painting in Javap. 510
Scaling Pointsp. 512
Drawing Strategyp. 517
Multithreadingp. 519
Internet Strategyp. 520
Stock Graph Panelp. 520
Integrating with the User Interfacep. 540
Internet Managerp. 540
Graph Tab Panelp. 541
Historical Data Managerp. 542
Main Menup. 542
Stock Applicationp. 544
Summaryp. 545
What's Next?p. 546
Implementing the CSV Managerp. 547
Use Casesp. 548
Implementation Decisionsp. 548
Selecting Filesp. 548
File Output Strategyp. 552
Package Strategyp. 552
Implementing the CSVManager Classp. 553
Integrating with the User Interfacep. 560
Portfoliop. 560
Historical Data Managerp. 563
Stock Applicationp. 567
Summaryp. 574
What's Next?p. 574
Enhancing the Stock Tracker User Interfacep. 575
Centering a Frame Onscreenp. 576
Splash Screensp. 577
SplashScreen Classp. 580
Toolbarsp. 583
Stock Tool Barp. 585
Keyboard Mnemonicsp. 590
Main Menu Acceleratorsp. 592
Integrating with the Stock Applicationp. 595
Stock Applicationp. 595
Resizingp. 601
Summaryp. 602
What's Next?p. 602
JavaBeans and JDBCp. 603
JavaBeansp. 603
The JavaBeans APIp. 605
JDBCp. 607
Summaryp. 617
Setting Up the Java 2 SDKp. 621
Setting Up the SDK in Microsoft Windowsp. 621
Run the SDK Software Installerp. 621
Update the PATH Variablep. 622
Check the CLASSPATH Variable (If Upgrading)p. 624
Start Using the SDK Toolsp. 629
Where Do I Go from Here?p. 630
Troubleshooting the Installationp. 630
Setting Up the SDK in Solarisp. 632
If Necessary, Install Solaris Patchesp. 633
Change to the Directory You Want to Install Intop. 633
Unpack the SDKp. 633
Update the PATH Variablep. 634
Check the CLASSPATH Variable (If Upgrading)p. 635
Start Using the SDKp. 640
Where Do I Go from Here?p. 641
Troubleshooting the Installationp. 642
Third-Party Development Environmentsp. 643
Inprise JBuilderp. 644
Sybase PowerJp. 644
Symantec Visual Cafep. 644
NetBeans Developerp. 645
Oracle JDeveloperp. 645
Metrowerks CodeWarrior Professionalp. 645
Java Resourcesp. 647
Web Sitesp. 647
Sun Microsystemsp. 647
Java Developer Connection (JDC)p. 647
Java Lobbyp. 648
Newsgroupsp. 648
Booksp. 648
Macmillan Computer Publishingp. 648
The Java Tutorialp. 649
Thinking in Javap. 649
Java Look and Feel Design Guidelinesp. 649
The Java Language Specificationp. 649
Magazinesp. 650
Java Developer's Journalp. 650
Java Worldp. 650
Java Report Onlinep. 650
Java Prop. 650
Focus on Javap. 650
Indexp. 651
Table of Contents provided by Syndetics. All Rights Reserved.

Rewards Program

Reviews for Java 2 from Scratch (9780789721730)