Browse Source

Added player 2 won method

master
TRC9696 2 years ago
parent
commit
eb99618cb9
  1. 17
      src/main/java/game/StartTicTacToeGame.java

17
src/main/java/game/StartTicTacToeGame.java

@ -329,4 +329,21 @@ public class StartTicTacToeGame implements ActionListener{
//zurück button
backButton.setVisible(true);
}
public void player2Won() {
label.setText("Spieler 2 hat gewonnen.");
label.setBounds(250,20,500,50);
button.setVisible(false);
button2.setVisible(false);
button3.setVisible(false);
button4.setVisible(false);
button5.setVisible(false);
button6.setVisible(false);
button7.setVisible(false);
button8.setVisible(false);
button9.setVisible(false);
//zurück button
backButton.setVisible(true);
}
}
Loading…
Cancel
Save