I have my buttons created from my Design View in Netbeans (of type JToggleButton)
ex. btn00, btn01 ...
I have one matrix for my grid (Memory game style):
Note that a memory game doesn't need to know that the cells are arranged in a rectangular matrix; it only cares if two cells have matching images. This example uses two instances of List
List
buttons
selected