File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 24199

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!