|
@ -311,5 +311,22 @@ public class StartTicTacToeGame implements ActionListener{ |
|
|
player2button9Pressed = true; |
|
|
player2button9Pressed = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
public void player1Won() { |
|
|
|
|
|
label.setText("Spieler 1 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); |
|
|
|
|
|
} |
|
|
} |
|
|
} |