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
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.
Pseudo code for init() function of MortgageDisplayGui
//variables declared as class member variables
JPanel MortgageAmtPanel = new JPanel();
JLabel MortgageAmtLabel = new JLabel("Mortgage Amount: ");
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
//repeat for all panels
//get and configure container from Jframe parent
Container cont = getContentPane();
cont.setLayout(new BoxLayout(cont, BoxLayout.PAGE_AXIS));
//add mortgage amount panel to the container
}//end init© BrainMass Inc. brainmass.com October 16, 2018, 4:22 pm ad1c9bdddf
<br>If you see the program description, specially in mortgageCalculator, it says that it should show the table as well and provide a button for amortization. so I've implemented that as well along with the features that you desired. In your descrition ...
Java Program for a Mortgage Calculator
Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage and the user's selection from a menu of available mortgage loans:
- 7 years at 5.35%
- 15 years at 5.5%
- 30 years at 5.75%
Use an array for the mortgage data for the different loans. Read the interest rates to fill the array from a sequential file. Display the mortgage payment amount followed by the loan balance and interest paid for each payment over the term of the loan. Add graphics in the form of a chart. Allow the user to loop back and enter a new amount and make a new selection or quit. Please insert comments in the program to document the program. I forgot to add the credit amount on the last post.View Full Posting Details