Page 1
January 8, 2012
Cody Mercer PRG/421
Import All Required Packages
import [Link].*;
import [Link].*;
import [Link].*;
import [Link].*;
Define Monthly Payment of Loan
Formula =
1- (1+ Loan Amount * Monthly
Interest)/
([Link](1 + Monthly Interest, -
Length of Loan in Months))
Instantiate GUI Components
Row1
Row2
Row3
Write Code required for designing
GUI application
Create the Calculate button and
add listener
[Link](th
is);
[Link](this);
[Link](this);
Define the actions performed by
Buttons and Combo
public void
actionPerformed(ActionEvent e)
WEEK 5
GUI Mortgage Calculator
Input
Mortgage Amount
Button Option
Clear
Button Option
Calculate
Button Option
Exit
Displays
Payment #
Amount
Interest Paid
New Balance
(Looped till termination of
Loan)
Combo Box Options
7 Years at 5.35%
15 Years at 5.50%
30 Years at 5.75%
Permit Own Variables
Displays
New Graphic Logo
Image/[Link]
Mortgage Calculator