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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic 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