Pos 407 Week 3

Below is one of our free research papers on Pos 407 Week 3. If the term paper below is not exactly what you're looking for, you can search our essay database for other topics or order a custom essay.

Pos 407 Week 3

/*
Program: Mortgage Calculator with Graphical User Interface
Current Version: 2.0
Programs accepts user input in 3 text fields: Term, Amount, and Rate.
When any field changes, Monthly Payment (output) updates.
Used Formatted Text Fields to prevent character input.
2.0 01/11/2007
Program accepts user input for the mortgage amount. Payment amount
is calculated from a radio button selection of the following:
7 year loan at 5.35%
15 year loan at 5.50%
30 year loan at 5.75%
User can also select to see an amortization table for each of the
loan choices (stored in an array)

*/

import java.awt.*; //Abstract Windows Toolkit
import java.awt.event.*; //Action Listener
import javax.swing.*;//Swing Container
import javax.swing.JScrollPane;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTable;
import java.beans.PropertyChangeListener; //allows the program to listen to property changes from any bound properties on the source bean
import java.beans.PropertyChangeEvent;
import java.text.*;//Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages
import java.text.DecimalFormat;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JMenuBar; //imports for the menu system
import javax.swing.KeyStroke;

public class MortgageGUI extends JPanel implements PropertyChangeListener, ActionListener
{ //Variable declaration here so they are accessible to all methods
//declare fields for user input and program output
private static JFrame frame = new JFrame("Monthly Mortgage Calculator");
private JFrame tableFrame = new JFrame("Amortization Table");
private JTable table; //used to hold the amortization table
private JFormattedTextField loanAmountField;
private...
  • Submitted by: silimonkey
  • Date Submitted: 01/21/2007 07:18 PM
  • Category: Technology
  • Words: 3127
  • Pages: 13
  • Views: 1007
  • Rank: 36757

Saved Papers

Save papers so you can find them more easily!

Join Now

Get instant access to over 180,000 papers.

Join Now