Mortgage Calculator Array and User Input

Java Program

Posted 05 January 2009 - 07:52 PM

Please help, I am having problems with the user input and array for amortization table.

*
* Write the program in Java (with a graphical user interface) so that it will allow the user to select which way they want to calculate a mortgage: by input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage payment or by input of the amount of a mortgage and then select from a menu of mortgage loans:

- 7 year at 5.35%
- 15 year at 5.5 %
- 30 year at 5.75%

In either case, display the mortgage payment amount and then, list the loan balance and interest paid for each payment over the term of the loan. Allow the user to loop back and enter a new amount and make a new selection, or quit. Insert comments in the program to document the program.

Re: Java Program

Re: Java Program

Posted 05 January 2009 - 09:34 PM

n8wxs, on 5 Jan, 2009 - 07:57 PM, said:

Now, what problem(s) are you having? Where?

Thank you for the response. This is my first time using this forum for advice. I need get the calculate button to calculate from the user input fields and display the information in the payment field and amortization table. For some reason I can put the text in the input fields but when I depress the calculate button I do not get the payment displayed in the payment text field and the amortization table.

Re: Java Program

Posted 05 January 2009 - 09:48 PM

edwiprkid, on 5 Jan, 2009 - 08:34 PM, said:

Thank you for the response. This is my first time using this forum for advice. I need get the calculate button to calculate from the user input fields and display the information in the payment field and amortization table. For some reason I can put the text in the input fields but when I depress the calculate button I do not get the payment displayed in the payment text field and the amortization table.

That's because there isn't any code that handles calcBn.setActionCommand ("calcPmt");

Re: Java Program

Posted 05 January 2009 - 10:21 PM

n8wxs, on 5 Jan, 2009 - 08:48 PM, said:

edwiprkid, on 5 Jan, 2009 - 08:34 PM, said:

Thank you for the response. This is my first time using this forum for advice. I need get the calculate button to calculate from the user input fields and display the information in the payment field and amortization table. For some reason I can put the text in the input fields but when I depress the calculate button I do not get the payment displayed in the payment text field and the amortization table.

That's because there isn't any code that handles calcBn.setActionCommand ("calcPmt");