How to manage a lot of Action Listeners for multiple buttons
- by Wumbo4Dayz
I have this Tic Tac Toe game and I thought of this really cool way to draw out the grid of 9 little boxes. I was thinking of putting buttons in each of those boxes.
How should I give each button (9 buttons in total) an ActionListener that draws either an X or O?
Should they each have their own, or should I do some sort of code that detects turns…