OtherPapers.com - Other Term Papers and Free Essays
Search

Mortgage Calculator (gui)

Essay by   •  September 21, 2011  •  Study Guide  •  889 Words (4 Pages)  •  1,358 Views

Essay Preview: Mortgage Calculator (gui)

Report this essay
Page 1 of 4

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

/**

*

*Change Request #4

Requestor: Ninfa Pendleton - Rapid City, SD

Program: Mortgage Calculator # 4 Week 2 (GUI)

*

*/

public class Mortgage4 extends JFrame {

/****

* Following will define the controls that we will going to use in the programm

*

*

*

*/

private JLabel labelLoanAmount;

private JLabel labelInterest;

private JLabel labelTerm;

private JTextField textLoanAmount;

private JTextField textInterest;

private JTextField textTerm;

private JLabel labelPMT;

private JLabel labelPMT1;

private JButton btnClaculate;

private JButton btnExit;

private JPanel Contpane;

private JPanel Btnpane;

/*

* Constructor

* Will Initialize All Controls And The It Will Show The GUI Window

*/

public Mortgage4() {

super("Mortgage Calculator");

Contpane = new JPanel(new GridLayout(4, 3, 10, 10));

Btnpane = new JPanel(new GridLayout(1, 2, 5, 5));

labelInterest = new JLabel("Interest rate %");

labelLoanAmount = new JLabel("Loan Amount $");

labelTerm = new JLabel("Terms In Years");

labelPMT = new JLabel("Monthly Payment Is $ ");

labelPMT1 = new JLabel("0.00");

textInterest = new JTextField();

textLoanAmount = new JTextField();

textTerm = new JTextField();

//Action Listner For Calculate Button

Action calculateAction = new AbstractAction("Calculate") {

...

...

Download as:   txt (3.4 Kb)   pdf (67.8 Kb)   docx (10 Kb)  
Continue for 3 more pages »
Only available on OtherPapers.com
Citation Generator

(2011, 09). Mortgage Calculator (gui). OtherPapers.com. Retrieved 09, 2011, from https://www.otherpapers.com/essay/Mortgage-Calculator-gui/11762.html

"Mortgage Calculator (gui)" OtherPapers.com. 09 2011. 2011. 09 2011 <https://www.otherpapers.com/essay/Mortgage-Calculator-gui/11762.html>.

"Mortgage Calculator (gui)." OtherPapers.com. OtherPapers.com, 09 2011. Web. 09 2011. <https://www.otherpapers.com/essay/Mortgage-Calculator-gui/11762.html>.

"Mortgage Calculator (gui)." OtherPapers.com. 09, 2011. Accessed 09, 2011. https://www.otherpapers.com/essay/Mortgage-Calculator-gui/11762.html.