Create a java program using a graphical user interface


Discuss the below:

Q: Create 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. 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.

Attachment:- src.rar

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a java program using a graphical user interface
Reference No:- TGS01935878

Now Priced at $25 (50% Discount)

Recommended (96%)

Rated (4.8/5)