Java GUI Mortgage Calculator

    I am attemping to write a program that will alllo a user to input information manually or by
selecting a pre-calculated Jbutton.   The Jbutons work but I am stumped on receiving the user
manual information.  Basically the manual input will is not displayed on the result payne

Mortgage-Calculator.txt
808KCAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
you need to calculate the payment *after* you have parsed the input


                     areaAmortTable.append ("Payment # \t Remaining Balance \t  Interest Paid\n");
                     loanAmt = Double.parseDouble(fieldLoanAmount.getText());
                     userTerm = Integer.parseInt(fieldTerm.getText());
                     userRate = Double.parseDouble(fieldRate.getText());
                     double paymentAmount = CalculatePayment ();
                     fieldPayment.setText("" + (currency.format(paymentAmount)));
0
 
808KCAuthor Commented:
 Incredible.   I spent a couple  frustrating hours on this.   Thanks
0
 
808KCAuthor Commented:
Thanks so much  for your help.  I always learn more from yours and this sites expert advice than I do reading books and sitting in a classroom.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.