The code would give errors because this statement was missing:
board[i][j] = new JPanel();
It would cause a NullPointerException
Type: Posts; User: Norm
The code would give errors because this statement was missing:
board[i][j] = new JPanel();
It would cause a NullPointerException
Do you get errors when executing the code? Copy the full text and pasted it here.
Both classes have a main() method. Which class do you use with the java command to execute the program?
Please post any code you have questions about in the thread. No links.
Take a look at the tutorial:
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
Do you have any specific questions about your assignment?
Please post your code and any questions about problems you are having.