![]() |
![]() |
#1 | ||
Coordinator
Join Date: May 2003
Location: Utah
|
Java Code Help - Again
Can anyone take a look at my program and tell me where the fault is at?
I am supposed to generate Amortization for 3 different mortgages, and I am getting 2 errors I cannot figure out. Thanks Code:
__________________
"forgetting what is in the past, I strive for the future" |
||
![]() |
![]() |
![]() |
#2 |
College Benchwarmer
Join Date: Nov 2003
|
And the errors are?
|
![]() |
![]() |
![]() |
#3 |
Coordinator
Join Date: May 2003
Location: Utah
|
I am getting an illegal start of expression with the Public Mortgage function declaration and a ';' expected at line 104, however, I can not see where it is at, but this is using JCreator IDE, so if someone is using another IDE that might give more information it would be helpful.
Thanks,
__________________
"forgetting what is in the past, I strive for the future" |
![]() |
![]() |
![]() |
#4 |
Head Coach
Join Date: Mar 2003
Location: Hometown of Canada
|
You're missing two semi-colons on the function?
" dnumPayments = iTerm*iPeriods; dmonthlyPayment = this.MonthlyPayment; " |
![]() |
![]() |
![]() |
#5 | |
Coordinator
Join Date: May 2003
Location: Utah
|
Quote:
I caught that, just as I posted this, I was also missing the () on the end of MonthlyPayment there as well...
__________________
"forgetting what is in the past, I strive for the future" |
|
![]() |
![]() |
![]() |
#6 |
Head Coach
Join Date: Mar 2003
Location: Hometown of Canada
|
And you're main doesn't have a closing curly brace?
|
![]() |
![]() |
![]() |
#7 | |
Coordinator
Join Date: May 2003
Location: Utah
|
Quote:
Ignore this....I just found it and opened up a can of worms.... I will be back with new code.....
__________________
"forgetting what is in the past, I strive for the future" Last edited by MacroGuru : 08-22-2005 at 04:40 PM. |
|
![]() |
![]() |
![]() |
#8 |
Head Coach
Join Date: Mar 2003
Location: Hometown of Canada
|
Maybe I'm rusty, but can you have all of these methods inside of main?
|
![]() |
![]() |
![]() |
#9 |
Head Coach
Join Date: Mar 2003
Location: Hometown of Canada
|
dola, I think you found what I was talking about then.
![]() |
![]() |
![]() |
![]() |
#10 |
Coordinator
Join Date: May 2003
Location: Utah
|
Mike,
thank you for pointing the things out you did, it actually helped me out a lot....I was able to finalize the code and get it working how it properly should. Thank you!
__________________
"forgetting what is in the past, I strive for the future" |
![]() |
![]() |
![]() |
#11 |
Head Coach
Join Date: Mar 2003
Location: Hometown of Canada
|
No problem.
|
![]() |
![]() |
![]() |
#12 |
Hall Of Famer
Join Date: Apr 2002
Location: Back in Houston!
|
Dang, I keep missing out on these fairly easy Java threads. Be fun to solve some of those again
![]() SI
__________________
Houston Hippopotami, III.3: 20th Anniversary Thread - All former HT players are encouraged to check it out! Janos: "Only America could produce an imbecile of your caliber!" Freakazoid: "That's because we make lots of things better than other people!" |
![]() |
![]() |
![]() |
#13 |
Pro Starter
Join Date: Nov 2003
Location: Alabama
|
ahhhh, if only all my java problems were this easy
|
![]() |
![]() |
![]() |
#14 |
College Benchwarmer
Join Date: Oct 2000
Location: speak to the trout
|
There are several ways to do it.
1) Implement a method that sends a message to the other frames that a click happened in a different frame 2) Make all frames mouse listeners and re-cast the mouse actions to cause a mouse event to happen in every frame every time. (Ugly, and I personally wouldn't suggest it, but it's possible) I'm sure there are other ways to do it -- but you will probably need a list of all instantiated frames, or possibly a unique higher level container to keep track of each frame.
__________________
No signatures allowed. Last edited by dacman : 04-04-2008 at 09:45 AM. |
![]() |
![]() |
![]() |
#15 |
Death Herald
Join Date: Nov 2000
Location: Le stelle la notte sono grandi e luminose nel cuore profondo del Texas
|
I'd like to point out that this is actual code, not macros.
![]()
__________________
Thinkin' of a master plan 'Cuz ain't nuthin' but sweat inside my hand So I dig into my pocket, all my money is spent So I dig deeper but still comin' up with lint |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|