Programming Windows With WFC And J/Direct


A Short Introduction To The Book

This new book recently written by Dr. Bruce Krell will appear in the bookstores in May, 1999. The subject of this book is Microsoft's new version of Java. This version of Java boasts a number of important new features. The Windows Foundation Classes (WFC) is a programmer's library to enable you to rapidly develop Java programs. J/Direct enables the programmer to easily access the native Windows API or any code written in C/C++. Seamless integration with COM and ActiveX allows the programmer to easily access operating system features such as ActiveX Data Objects and the Microsoft Transaction Server.

The basis for this book is a graduated series of realistic sample programs. Each of these programs demonstrates adding useful features to a program. Additionally, significant comparisons are made between programs written in WFC, J/Direct, and Pure Java. The last section of the book implements a 3-tiered system in Java that uses COM, MS Transaction Server, ActiveX Data Objects, ODBC, and SQL Server.


Table Of Contents

Chapter 1: WFC, J/Direct, and All That Jazz…, introduces the benefits to using Java, characterizes the different versions of Java available for your development language, and performs a qualitative evaluation among the available versions.
Chapter 2: A Conceptual Overview of Windows Programming, provides an introduction into the components of Windows NT, describes the usage of queues, messaging, and device interfaces for obtaining hardware independence, and defines the design approach for event oriented applications.
Chapter 3: Just a Small Cup of Java, Please, analyzes a simple Java program, characterizes the programming features of Java commonly used when implementing in all versions of Java, and introduces classes and class inheritance hierarchies.
Chapter 4: So, Which Version Of Java Should I Use?,, implements the infamous Hello, Windows! program in WFC, J/Direct, Pure Java, and WFC/DHTML and performs a quantitative comparison study of the implementations.
Chapter 5: And, Now For A Little Fun, implements a simple animation program in WFC, J/Direct, and Pure Java, demonstrates support for graphic device hardware independence provided by each version of Java, and shows the usage of timers in each version of Java.
Chapter 6:Providing A Graphical User Interface, defines a basic set of controls supported by all the versions of Java, describes creation, initialization, servicing, and termination of each of the controls, and implements each of the controls in WFC, J/Direct, Pure Java, and WFC/DHTML.
Chapter 7:Implementing A Drawing Program Using WFC, implements a basic Computer Aided Drawing (CAD) program using WFC, demonstrates adding support for drawing with rubber banding, typing and echoing of characters, incorporating menus, using popup dialogs to set parameters, and shows you how to define your own events.
Chapter 8:Implementing A Drawing Program Using J/Direct, implements the same basic CAD program using J/Direct, adding the same features as the WFC version.
Chapter 9:Implementing A Drawing Program Using Pure Java, implements the same basic CAD program using Pure Java, adding the same features as the WFC version.
Chapter 10:Controlling Access With A LogOn Dialog, demonstrates using dialogs and class localized events to perform access control, implements a logon dialog class using WFC, J/Direct, Pure Java, and WFC/DHTML, and utilizes support for hiding passwords.
Chapter 11:Threading And Synchronization, defines software threads, synchronization concepts, and the reentrancy problems, introduces a multithreaded synchronization architecture for solving a simple reentrancy problem, and implements the multithreaded architecture in WFC, J/Direct, and Pure Java.
Chapter 12:Using COM and ActiveX With Java, demonstrates using existing COM and ActiveX controls from Java clients, illustrates implementing COM and ActiveX servers in Java, and shows usage of these Java servers from Java clients and Visual Basic clients.
Chapter 13:Supporting ActiveX Data Objects, introduces the ADO object architecture, implements a simple wrapper class for ADO, and demonstrates using the ADO wrapper class with MS Access.
Chapter 14:A Simple 3-Tiered Application In Java, defines a sample system that includes a graphical user interface, a stateless middle-tier business logic object, and a low-level data manager object, and implements the system with two interfaces - application interface and web browser interface.
Appendix A:Navigating the Accompanying CDROM, provides installation and organization information for using the accompanying CDROM.
Appendix B: A Simple Step By Step Tutorial On Using Visual J++, walks you through a complete project definition, coding, debugging, and testing cycle using the simple Java program from Chapter 3.
Appendix C: Quick Reference To WFC: provides you with a thumbnail reference guide to the Windows Foundation Classes, shows class names, field names and their data types, and method signatures, and gives some explanation as to the class capabilities.

Three Tiered System Architecture Implemented In WFC/Java


The primary tier GUI Client uses WFC.

The middle tier MTS Calculator is a COM object written entirely in Java.
This object executes under The Transaction Server.

The bottom tier Database Manager object also is a COM object written entirely in Java.
This object is a wrapper class that talks to the ActiveX Data Objects (ADO),
interacting with a SQL Server distributed database server.


Return