mini Anpassungen

This commit is contained in:
Kaver 2024-12-17 17:13:40 +01:00
parent 42fc341608
commit 0b2ee88316
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ public class BoardDisplay extends JPanel {
* Konstruktor der startLocalGame. * Konstruktor der startLocalGame.
* @param gridSize Die Größe des Spielfelds * @param gridSize Die Größe des Spielfelds
* @param player Der Spieler * @param player Der Spieler
* @author Lucas Bronson
*/ */
public BoardDisplay(int gridSize, Player player, boolean enemyBoard) { public BoardDisplay(int gridSize, Player player, boolean enemyBoard) {
super(new GridLayout(gridSize + 1, gridSize + 1)); // +1 wegen extra Zeile/Spalte super(new GridLayout(gridSize + 1, gridSize + 1)); // +1 wegen extra Zeile/Spalte

View File

@ -50,7 +50,7 @@ public class WinScreen extends JPanel {
timer.start(); // Timer starten timer.start(); // Timer starten
winLabel.setFont(robotoFont); winLabel.setFont(robotoFont);
winLabel.setHorizontalAlignment(SwingConstants.CENTER); winLabel.setHorizontalAlignment(SwingConstants.CENTER);
//okButton.setHorizontalAlignment(SwingConstants.CENTER); //Zurückkehren zum Hauptmenü, wenn okButton gedrückt wird
okButton.addActionListener(new ActionListener() { okButton.addActionListener(new ActionListener() {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {