Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Johan Gustav Thrane-Nielsen
inf101.v20.sem2.losning
Commits
82f05819
Commit
82f05819
authored
Mar 25, 2020
by
Anna Maria Eilertsen
Browse files
cleanup GUI: removed unused button and import
parent
195fe892
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/inf101/v20/sem2/mnkgames/GUI/MNKGameGUI.java
View file @
82f05819
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment