JavaRanch » Java Forums »
Java »
Beginning Java
| Author |
Dice Game help and Arrays
|
Lucas Martin
Greenhorn
Joined: Mar 09, 2011
Posts: 8
|
|
I'm unsure about what to do with this section of code, errors are on lines 368 - 388, it's underlined in red using Eclipse and says, pointDie*JLabel1 (* is 1-5) as it does this on all lines through this section, cannot be resolved. I have a feeling it has something to do with the arrays and variables above, I need some help and any other issues you may come across. I know rollFives and moveDice is undefined at this time, and change player as this was going to be assigned for two players only but thought I'd try to let it decide 1-5 players. The scores are also suppose to populate in the JTextField on the right depending on how many players were selected....so lost. Any help will be appreciated.
BTW the other errors are at 463 in the else if , 479 with the turnpoints undefined
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16692
|
|
Snark Knuckle wrote:I'm unsure about what to do with this section of code, errors are on lines 368 - 388, it's underlined in red using Eclipse and says, pointDie*JLabel1 (* is 1-5) as it does this on all lines through this section, cannot be resolved.
Take a look at the variable declarations, and how you use those variables. You will see that you are off by one character (ie. they are not the same).
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Lucas Martin
Greenhorn
Joined: Mar 09, 2011
Posts: 8
|
|
|
Thank you, that corrected quite a few problems right there just by some typing errors. Now to just figure out why it's not populating the right text field and keeping score :/
|
 |
 |
|
|
subject: Dice Game help and Arrays
|
|
|
|