diff --git a/src/main/java/src/TicTacToeGame.java b/src/main/java/src/TicTacToeGame.java index 8613662..592b0ed 100644 --- a/src/main/java/src/TicTacToeGame.java +++ b/src/main/java/src/TicTacToeGame.java @@ -145,6 +145,11 @@ public class TicTacToeGame implements ActionListener { bton[i1].setBackground(Color.PINK); bton[i2].setBackground(Color.PINK); + for (int j = 0; j < 9; j++) + { + bton[j].setEnabled(false); + } + textfield.setText("Player O Wins"); } //method if player X wins