From e02ab7aac1ea4f5a1d3197d33a5222e18ef41975 Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Thu, 19 Jan 2023 13:03:54 +0100 Subject: [PATCH] refactoring:[TikTakToeGame Class]: Name geaendert --- .../JavaGamelauncher/TikTakToeGame.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java index af50812..a95dba2 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java @@ -41,7 +41,7 @@ public class TikTakToeGame extends JFrame{ JButton btnNewButton9 = new JButton(""); JButton btnNewButtonReset = new JButton("Reset Game"); - JButton btnNewButtonClearField = new JButton("Feld Säubern"); + JButton btnNewButtonFeldSaubermachen = new JButton("Feld Säubern"); public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { @@ -204,7 +204,7 @@ public class TikTakToeGame extends JFrame{ btnNewButtonReset.setBounds(10, 490, 150, 60); contentPane.add(btnNewButtonReset); - btnNewButtonClearField.addActionListener(new ActionListener() { + btnNewButtonFeldSaubermachen.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { spielerIstDran = 1; @@ -251,11 +251,11 @@ public class TikTakToeGame extends JFrame{ } }); - btnNewButtonClearField.setForeground(Color.BLACK); - btnNewButtonClearField.setFont(new Font("Consolas", Font.PLAIN, 15)); - btnNewButtonClearField.setBackground(new Color(64, 128, 128)); - btnNewButtonClearField.setBounds(260, 490, 150, 60); - contentPane.add(btnNewButtonClearField); + btnNewButtonFeldSaubermachen.setForeground(Color.BLACK); + btnNewButtonFeldSaubermachen.setFont(new Font("Consolas", Font.PLAIN, 15)); + btnNewButtonFeldSaubermachen.setBackground(new Color(64, 128, 128)); + btnNewButtonFeldSaubermachen.setBounds(260, 490, 150, 60); + contentPane.add(btnNewButtonFeldSaubermachen); btnNewButton1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { @@ -1034,12 +1034,12 @@ public class TikTakToeGame extends JFrame{ this.btnNewButtonReset = btnNewButtonReset; } - public JButton getBtnNewButtonClearField() { - return btnNewButtonClearField; + public JButton getbtnNewButtonFeldSaubermachen() { + return btnNewButtonFeldSaubermachen; } - public void setBtnNewButtonClearField(JButton btnNewButtonClearField) { - this.btnNewButtonClearField = btnNewButtonClearField; + public void setbtnNewButtonFeldSaubermachen(JButton btnNewButtonFeldSaubermachen) { + this.btnNewButtonFeldSaubermachen = btnNewButtonFeldSaubermachen; }