The code has changed from what was posted before. Hard to talk about something that has changed.
What happens to the array when the createContentPane() method exits?
NOTE: The for loops...
Type: Posts; User: Norm
The code has changed from what was posted before. Hard to talk about something that has changed.
What happens to the array when the createContentPane() method exits?
NOTE: The for loops...
The blackPanel array is local to the loops and does not exist when they end.
What is the need for the blackPanel array? Could a non array variable do what is needed?
The first line gives the name/class of the exception: ArrayIndexOutOfBoundsException: 0
The next line gives the location of the error: line 31 in ConnectFour
Following that the lines are the call...
Please copy the full text of the error message and paste it here. It has important info about the error.