Introduction

This document demonstrates how you can build a series of applications by writing a minimal amount of code. This is done by using the Inheritance features of Java classes.

The Java class wrpSampler is a basic Java program that was built using NetBeans, which can be downloaded for free from the Sun website. It provides a simple main application with text areas at the top of bottom of the window, and a series of buttons and user instructions in the middle. The user types something in the top area, clicks on the Process button, and the program displays something in the bottom area.

The base class, wrpSampler was written in a modular way so that it can easily be extended to perform different types of operations. You are encouraged to extend either this class or one of the supplied subclasses to create a new program of your own design. This should make it easier for you to write new Java programs.

The following programs are included in this package. Each class processes the text data entered in the top text area and displays the results in the lower text area.

wrpSampler
Copies the text from the top area unchanged.
This is the original base class. It doesn't do much in and of itself, but provides the basis for the other programs
wrpCharCount
This program counts the characters in the top area, classified as letters, digits, etc.
wrpWordCount
Counts words entered in the top area.
This program extends the previous wrpCharCount class.
wrpEncrypt
This program does a simple encryption of the text in the top area.

The JavaDoc documentation includes documentation on the modifications, as well as instructions on how to create your own programs.