BUS4 110 Assignment 4 - Java Mortgage Calculator

The purpose of this assignment is to learn how to develop a GUI for a computational program in Java. The assignment is divided into four parts:

  1. Rough Draft of the Mortgage Calculator - not pretty but functional. (50) (due 12/10/2002)

  2. A good looking Mortgage Calculator - adds design touches, date display and output formatting.(50) (due 12/10/2002)

  3. A good looking Validating Mortgage Calculator - adds input validation and error messages.(50) (due Final Exam time)

    Validating an Input Field

  4. A good looking Validating Mortgage Calculator with Payment Report - adds a report preference, a window and appropriate controls to let user decide to show parts of the Payment Report ( Logic of the Payment Report ). (100) (due Final Exam time)

Each part is to be turned in for credit. Last 2 parts due Final Exam time.

Screen could look like this:

Another way of implementing the error messages is to use a message box.

The Java code for creating the MsgDailog class is from Chapter 10 in the text.

You need to use the following statement to import the class after you have compiled it:

import MsgDialog.*;

This Java program example uses a Frame for display and is not fixed to this page. Look for Java Applet Viewer with title: "Message Box Demo".