Method to add cell buttons to the frame for first 5 types.
()
| 505 | * Method to add cell buttons to the frame for first 5 types. |
| 506 | */ |
| 507 | public void addBoard(){ |
| 508 | for (int i = 0; i < board.length; ++i){ |
| 509 | for (int j = 0; j < board[0].length; ++j){ |
| 510 | if (board[i][j].getBackground() == Color.WHITE) add(new JLabel()); |
| 511 | else add(board[i][j]); |
| 512 | } |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | /** |
| 517 | * Method to add cell buttons to the frame for last type. |