Programming with VisualAge for Java Version 2.0 with Cdrom

From the Book: PREFACE: Preface Java is definitely here to stay. The number of developers working with Java continues to increase dramatically, while Sun and other Java development organizations continue to release new developments, such as the Java Foundation Classes and Enterprise JavaBeans. In 1998, the focus of Java development changed somewhat - from applets to encompass servlets and enterprise computing. As a typical Java developer, you no longer whip up a simple applet in an afternoon. Today you need a serious development environment to create large and complex applications. You need an environment with code management, powerful searching and browsing, GUI building, and JavaBean creation and manipulation capabilities. You need an environment that helps you think in terms of objects. With the new and improved features of Version 2, VisualAge for Java is the development tool for serious Java development. Programming with VisualAge for Java Version 2 shows you how to use VisualAge for Java to develop Java applets, applications, and servlets. You will learn the right way of coding with VisualAge for Java and how to use the tool productively. Who Should Read This Book? This book teaches you how to program in the VisualAge for Java environment. You should already have some knowledge of object-oriented programming and the Java language. You should also know a little about the Internet and TCP/IP to understand the concepts introduced. For Chapter 7, "Making Your Data Persistent", you should have some knowledge of relational databases and SQL. How to Use This BookThe book is organized as a tutorial where many chapters build on theexamplesin the previous chapters. Specifically: \\Chapter 6, "Finishing the ATM Application", depends on the ATM model you build in Chapter 3, Beginning the ATM Project. Chapter 7, "Making Your Data Persistent", Chapter 8, "Creating Servlets", Chapter 9, "Internationalization" and Chapter 11, "Advanced Topics" depend somewhat on the code you develop for the Bookmark List in Chapter 4, "Building User Interfaces". The book is not a complete set of documentation for VisualAge for Java. Use the online documentation included with the product for specific reference material or to see another way of approaching some of the topics. CD-ROM The CD-ROM that accompanies this book contains the IBM VisualAge for Java Entry Edition as well as other required software. Refer to the README.TXT file in the root directory of the CD-ROM for the latest information about installing VisualAge for Java and the sample code on your machine. For updates to the sample code or the book, see ftp.almaden. ibm.com/redbooks/SG245264. The Java and Internet world is forever changing. The software on the CD-ROM may be several months old by the time you buy this book. You are encouraged to download the current evaluation copies of the software or, even better, to buy the software at the latest level. How This Document Is OrganizedChapter 1, Introduction to the Environment In this chapter you are introduced to the VisualAge family and to the new features of VisualAge for Java. You build your first applets and applications, learn to use the Scrapbook, and customize the VisualAge for Java environment. Chapter 2, Organizing Your Code This chapter explains how you work with code in VisualAge for Java and introduces you to the windows and views of the development environment and the code import and export features of VisualAge for Java. Chapter 3, Beginning the ATM Project In this chapter you implement the business logic for the Automated Teller Machine (ATM) application, one of the examples you will use throughout the book. You step through the design and implementation of the ATM application. Along the way you learn how to use VisualAge for Java to build JavaBeans from the BeanInfo page of the Class Browser. Chapter 4, Building User Interfaces In this chapter you use the Java Foundation Classes (JFC) to build a Bookmark List to save your favorite URLs. The VisualAge for Java Visual Composition Editor features for building user interfaces with the JFC are explained. Chapter 5, Managing and Fixing Your Code This chapter explains the code management features of VisualAge for Java, including the workspace and repository concepts. You also learn how to use the Inspectors and debugger to trace and fix your code. Chapter 6, Finishing the ATM Application This chapter guides you through the process of implementing a complex application by using card layouts, multiple panels, inner classes, and variables. Chapter 7, Making Your Data Persistent This chapter shows you how to add persistence to your Bookmark List applet through serialization or a relational database. Chapter 8, Creating Servlets In this chapter you learn how to use VisualAge for Java to create and debug servlets. You implement the Bookmark List as a servlet. Chapter 9, Internationalization This chapter explains VisualAge for Java support for creating applets and applications that can run in a variety of locales. Chapter 10, Deploying Your Java Programs In this chapter you walk through the steps required to deploy applets, servlets, and applications. Chapter 11, Advanced Topics In this chapter you learn about several advanced VisualAge for Java features, including the interface to external SCM tools, Remote Method Invocation, AgentRunner: Lotus Domino Connection, and the Tool Integration Framework. Examples in This Book The examples in this book were created with VisualAge for Java Professional Version 2 on Windows NT. If you are using VisualAge for Java Enterprise, or VisualAge for Java Professional on another platform, you may experience differences in creating the examples. If so, please let the authors know at redbook@us.ibm.com and the differences will be posted to the ftp site: ftp.almaden. ibm.com/SG245264. The examples were created using the original released version of the product. You should download the available fixpacks for the product from www.software. ibm.com/vadd. If you install fixpacks, some of the behavior outlined in the examples may change. You can find the examples at ftp.almaden. ibm.com/SG245264. World Wide Web Addresses in This Book The URLs given in this book were correct at the time the book was created. Given the dynamic nature of the Web, these addresses may no longer exist when you read this book. Use the search services of the IBM web site or other search services to locate the correct sites if they still exist. ITSO on the Internet Internet users can find information about redbooks on the ITSO World Wide Web home page. Point your Web browser to: .