title: Check Adjacent Cells in 2D Array - Java
body: <p>I have a 2D Array of JButton 14x14 size. I painted the JButtons with random colors and I need to find the adjacent cells with the same color everytime I click on a JButton. Do you guys have any idea how to get the neighbors of a JButton cell with the same color? (Keep in mind,once it finds the neighbors, it should look for the neighbors' adjacents too).</p>