[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

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
0
808KC
Asked:
808KC
  • 2
1 Solution
 
objectsCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now