Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M91613093
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As