Hello guys.
I was following Software Architecture & Design on Youtube and up until then there is no problem. But now when I got to redraw the board it didn’t work. ???
Need help to solve this problem.
You can see all of my code on my Github Here
But here some of the code:
In the BoardPanel class
public void drawBoard() {
removeAll();
for(TilePanel tilePanel : tiles) {
final int ID = tilePanel.ID;
tilePanel = new TilePanel(this,ID);
add(tilePanel);
}
validate();
repaint();
}
In the TilePanel class
public void drawTile() {
assignTileColor();
assignTileIcon(chessBoard);
validate();
repaint();
}
Please check it out!