public void loadBoard()
{
for(int row = 0; row < 5; row++)
for(int col = 0; col < 5; col++)
{
buttons[row][col] = new JButton("");
buttons[row][col].addActionListener(this);
this.add(buttons[row][col]);
}
}
public void loadBoard() { for(int row = 0; row < 5; row++) for(int col
Share
Use a
GridLayout, or any otherLayoutfor that matter to lay them out.