I want to have an 8x8 array of square buttons, all equal size. The buttons should be created and placed in the cells of the grid by the code.

Each button should have a specified background color, and sometimes an image. The image has a transparent background so the button background color shows through the transparent parts.

All buttons will share an event handler, which should be able to determine which cell (row, col) the button is located. I could probably put that information in the button's tag if I need.