Java 2 Flowwk 5

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Page 1

January 8, 2012
Cody Mercer PRG/421
Import All Required Packages
import javax.swing.*;
import java.awt.*;
import java.text.*;
import java.awt.event.*;
Define Monthly Payment of Loan
Formula =
1- (1+ Loan Amount * Monthly
Interest)/
(1Math.pow(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
calculateButton.addActionListener(th
is);
clearButton.addActionListener(this);
exitButton.addActionListener(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/javalogo.png
Mortgage Calculator

You might also like