Gui that accepts user input of the amount of the mortgage

Assignment Help JAVA Programming
Reference no: EM13942225

Please help write a java program using a graphical user interface that accepts user input of the amount of the mortgage, the term of the mortgage and the interest rate of the mortgage and display the payment. Please use attached Mortgagedisplaycalcultor class diagram (must have the same names in the code) as a guide.

The display should meeth the following criteria:
A class called MortgageDisplayGui.java shall be a child of the Jframe.class and will consist of 5 individual Jpanels

1. ratePanel

2. termPanel

3. amountPanel

4. paymentPanel

5. buttonPanel

JPANEL 1-4 will contain two controls each, a JLabel and a JtextField
JPANEL 5 will contain four controls-each a Jbutton, one to Quit, one to Reset and one to calculate and one to view Amortization.
JPANEL 1-5 will have a flow layout manager

The Container of the primary MortgageDisplayGui.java class will have a BoxLayout manager.

The MortgageDisplayGui.java class will have an init()function that builds the gui. The init() function will be called from the constructor.

The MortgageDisplayGui.java will be packaged into a src.calculator.gui package

The Driver.java will be packaged into a src.calculator package

The Driver class should make and instance of the gui and then display the gui.

Repackage Calculator classes into src.calculator.util package.

EXAMPLE GUIDE:

Pseudo code for init() function of MortgageDisplayGui

//variables declared as class member variables
JPanel MortgageAmtPanel = new JPanel();
JLabel MortgageAmtLabel = new JLabel("Mortgage Amount: ");
JTextField MortgageAmtText

Public void init()
{

//instantiate loan amount controls
MortgageAmtPanel = new JPanel();
MortgageAmtLabel = new JLabel("Mortgage Amount: ");
MortgageAmtText = new JTextField(16);

//add layout manager to the panel - flowlayout keeps the controls side by side
MortgageAmtPanel.setLayout(new FlowLayout());

//repeat for all panels

//get and configure container from Jframe parent
setSize(400, 300);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Container cont = getContentPane();
cont.setLayout(new BoxLayout(cont, BoxLayout.PAGE_AXIS));

//add mortgage amount panel to the container
cont.add(MortgageAmtPanel );

}//end init

Reference no: EM13942225

Questions Cloud

Re-equip one of its major production plants : A company is planning to re-equip one of its major production plants and one of two types of machine, the Zeta and the Precision II, is to be purchased. The prices of the two machines are very similar so the choice of machine is to be based on two..
What will be the effect on cash flows of this sale : Suppose you sell a fixed asset for $50,000 when its book value is $60,000. If your company's marginal tax rate is 40%, what will be the effect on cash flows of this sale (i.e., what will be the after-tax cash flow of this sale)?
The market interest rates : Brook Company issued a $10,000, 5-year, 11% bond that was sold when the market interest rates were 12%. The bond pays interest semiannually
Critically analyse the internal and external environment for : Critically analyse the internal and external environment for your chosen organisation, making reference to appropriate literature sources. Using appropriate concepts and models of strategic Human ResourceManagement critically evaluate a variety of hu..
Gui that accepts user input of the amount of the mortgage : Please help write a java program using a graphical user interface that accepts user input of the amount of the mortgage, the term of the mortgage and the interest rate of the mortgage and display the payment.
Compute the payback statistic for project : Compute the Payback statistic for Project X and recommend whether the firm should accept or reject the project with the cash flows shown below if the appropriate cost of capital is 10 percent and the maximum allowable payback is 5 years.
Considering the addition of a new line of organic fertilizer : Martin Inc. is considering the addition of a new line of organic fertilizer. It is expected that each application of fertilizer will sell for $15.50 and the variable operating cost per application will be $8.00. Total fixed operating costs are expect..
Draft an e-mail reply sympathizing with the customer pligh : Draft an e-mail reply sympathizing with the customer's plight but preparing him for the bad news (that company policy specifically prohibits refunds in such cases).
Balance sheet equation format : balance sheet equation format to show the effect of the following transactions. Write the account names that will be used for each transaction.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create javascript program to find gross pay for employees

Create JavaScript program which will find out the gross pay for each of three employees. Company pays "straight time" for first 40 hours worked by each employee and pays "time and a half".

  Convert the while loop in the following code segment

Convert the while loop in the following code segment to a do-while loop

  Java program which demonstrates cellular automata

Using the internet, locate a Java program (or Java applet) which demonstrates "Cellular Automata", in particular "the Game of Life".

  Using the following data definition classpublic class

using the following data definition classpublic class circle private int radiuspublic circleint r radius rpublic int

  Role of object oriented programming in modern programming

the role of Object Oriented programming in modern programming solutions

  Create a program that develops an amortization schedule

Your project as a programming consultant is to create a program that develops an amortization schedule. Your program should be written as a Java applet.

  Implement a class quiz

Implement a class Quiz that implements the Measurable interface.

  A this adds storage of the maindata as an external random

a. this adds storage of the maindata as an external random access file with id as key to allow listall and query

  Java application that calculates the body mass index

Write a Java application that calculates and displays the body mass index (BMI) for N people

  Java application that can hold five doubles in an array

Write a Java application that can hold five doubles in an array, and display the doubles from first to last, and then display the doubles from last to first. Use the following logic for BubbleSort to sort and display the array in sequence.

  Create a jsp that displays the student name

Create a JSP that displays the student name and the current score, given the EMPLID and class ID. For each class, a text file is used to store the student name, EMPLID, and current score

  Create the benefit class

create the Benefit class

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd