wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Java Rookie Programming Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Rookie Programming Question" Watch "Java Rookie Programming Question" New topic
Author

Java Rookie Programming Question

Hunter Rose
Greenhorn

Joined: Mar 15, 2004
Posts: 2
Requirements: Write a Java Program using a GUI that calculates and displays the mortgage amount from user input of the amount of mortgage, the term of the mortgage, and the interest rate. Allow the user to loop back and enter new data or quit.
Problem: I am pretty sure I have everything covered except how to get the program to calculate. Is there anyone out there who can check over my code and tell me what mistake I am making?
I am a rookie Java programmer and a rookie to this type of forum. I am seeking help so if I am asking in the wrong place, please point me to the appropriate area for this type of question.
My code follows:
[ edited to remove the evil tab character, and to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ March 16, 2004: Message edited by: Dirk Schreckmann ]
[ March 16, 2004: Message edited by: Dirk Schreckmann ]

Thanx,<p>Havok<p>ONWARD TO MAYHEM!!!
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
The problem lies here

You are trying to get the value from the labels (JLabel), instead of the text fields (JTextField)
Try changing it to


Mani
Quaerendo Invenietis
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Rookie Programming Question
 
Similar Threads
Problems with this weeks code..Still not understanding Illegal start of expression...HELP PLEASE
last week of class last assignment. Any help is appreciated.
Help with errors again
One error in code..not understanding what it tells me. Code works it is on line 55.
Java Rookie Help Requested