This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes GUI Mortgage Calculator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "GUI Mortgage Calculator" Watch "GUI Mortgage Calculator" New topic

GUI Mortgage Calculator

Khrystyne Alcala

Joined: Oct 09, 2005
Posts: 8
I'm having the hardest time trying to figure out how to have my code calculate and display. The GUI portion is finally done, now I need help with the calculations. The current formula is a borrowed one from a web site I was looking through for answers to this question, I think this may be my problem. My original formula is at the end of the code.Could someone please help me?

Jeff Eltgroth

Joined: Nov 02, 2007
Posts: 2
Your calculation agrees with Excel. I used the default values in the function:

=PMT(5.75/100/12, 30*12, 100000)

The result is (583.57) which agrees with the answer in the GUI app.
Khrystyne Alcala

Joined: Oct 09, 2005
Posts: 8
I guess I should've been more descriptive about my problem. I can't get it to calculate with different field inputs, when the "Calculate" button is pressed, nothing happens.

Can you help?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24193

Hi Khrystyne,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Initials aren't enough. You can change your display name here. Thanks!

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: GUI Mortgage Calculator
It's not a secret anymore!