Browse Source

refactoring:[TikTakToeGame Class]: Name geaendert

remotes/origin/TikTakToeGame
fdai7431 2 years ago
parent
commit
e02ab7aac1
  1. 22
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java

22
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 btnNewButton9 = new JButton("");
JButton btnNewButtonReset = new JButton("Reset Game"); 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) { public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() { EventQueue.invokeLater(new Runnable() {
@ -204,7 +204,7 @@ public class TikTakToeGame extends JFrame{
btnNewButtonReset.setBounds(10, 490, 150, 60); btnNewButtonReset.setBounds(10, 490, 150, 60);
contentPane.add(btnNewButtonReset); contentPane.add(btnNewButtonReset);
btnNewButtonClearField.addActionListener(new ActionListener() {
btnNewButtonFeldSaubermachen.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
spielerIstDran = 1; 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() { btnNewButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
@ -1034,12 +1034,12 @@ public class TikTakToeGame extends JFrame{
this.btnNewButtonReset = btnNewButtonReset; 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;
} }

Loading…
Cancel
Save