![]() |
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:
|
And the errors are?
|
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, |
You're missing two semi-colons on the function?
" dnumPayments = iTerm*iPeriods; dmonthlyPayment = this.MonthlyPayment; " |
Quote:
I caught that, just as I posted this, I was also missing the () on the end of MonthlyPayment there as well... |
And you're main doesn't have a closing curly brace?
|
Quote:
Ignore this....I just found it and opened up a can of worms.... I will be back with new code..... |
Maybe I'm rusty, but can you have all of these methods inside of main?
|
dola, I think you found what I was talking about then. :)
|
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! |
No problem.
|
Dang, I keep missing out on these fairly easy Java threads. Be fun to solve some of those again :)
SI |
ahhhh, if only all my java problems were this easy
|
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. |
I'd like to point out that this is actual code, not macros.
:D |
All times are GMT -5. The time now is 08:23 AM. |
Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.