Commit 82f05819 authored by Anna Maria Eilertsen's avatar Anna Maria Eilertsen
Browse files

cleanup GUI: removed unused button and import

parent 195fe892
......@@ -9,7 +9,6 @@ import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.function.Supplier;
import javax.swing.BorderFactory;
import javax.swing.JButton;
......@@ -45,7 +44,6 @@ s * Initializes a JFrame in which we place the game
// Fields
private MNKGame game;
private JButton resetBoardButton;
private JButton playConnectFourButton;
private JButton playTicTacToeButton;
private JLabel statusMessage;
......@@ -206,10 +204,6 @@ s * Initializes a JFrame in which we place the game
}
public JPanel createButtonPanel() {
resetBoardButton = new JButton();
resetBoardButton.addActionListener(this);
resetBoardButton.setText("Reset Board");
playTicTacToeButton = new JButton();
playTicTacToeButton.addActionListener(this);
playTicTacToeButton.setText("Tic-Tac-Toe");
......@@ -223,7 +217,6 @@ s * Initializes a JFrame in which we place the game
JPanel buttons = new JPanel();
buttons.setLayout(new BorderLayout());
buttons.add(resetBoardButton, BorderLayout.CENTER);
buttons.add(playConnectFourButton, BorderLayout.WEST);
buttons.add(playTicTacToeButton, BorderLayout.EAST);
return buttons;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment