Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
3
3XA3 Lab 3 Group 7
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mike Li
3XA3 Lab 3 Group 7
Commits
20f4e386
Commit
20f4e386
authored
3 years ago
by
Ahmed Loui Al Koasmh
Browse files
Options
Downloads
Patches
Plain Diff
Made End Game Display edits
parent
be0424cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/EndGameDisplay.java
+16
-11
16 additions, 11 deletions
src/EndGameDisplay.java
with
16 additions
and
11 deletions
src/EndGameDisplay.java
+
16
−
11
View file @
20f4e386
...
...
@@ -33,28 +33,33 @@ public class EndGameDisplay extends JPanel{
JLabel
lblSnakeRevamped
=
new
JLabel
(
"GAME OVER"
);
lblSnakeRevamped
.
setForeground
(
new
Color
(
255
,
0
,
0
));
lblSnakeRevamped
.
setFont
(
new
Font
(
"GOST Common"
,
Font
.
BOLD
,
87
));
lblSnakeRevamped
.
setBounds
(
200
,
125
,
501
,
151
);
lblSnakeRevamped
.
setBounds
(
220
,
200
,
501
,
151
);
lblSnakeRevamped
.
setSize
(
lblSnakeRevamped
.
getPreferredSize
());
this
.
add
(
lblSnakeRevamped
);
JButton
btnPlayAgain
=
new
JButton
(
"Main Menu"
);
btnPlayAgain
.
setFont
(
new
Font
(
"Tahoma"
,
Font
.
PLAIN
,
32
));
btnPlayAgain
.
setBounds
(
211
,
297
,
202
,
79
);
btnPlayAgain
.
addActionListener
(
new
ActionListener
()
{
JButton
btnEndGame
=
new
JButton
(
"Main Menu"
);
btnEndGame
.
setFont
(
new
Font
(
"Tahoma"
,
Font
.
PLAIN
,
32
));
btnEndGame
.
setBounds
(
236
,
297
,
202
,
79
);
btnEndGame
.
setBackground
(
new
Color
(
145
,
139
,
139
));
btnEndGame
.
setForeground
(
Color
.
WHITE
);
btnEndGame
.
addActionListener
(
new
ActionListener
()
{
public
void
actionPerformed
(
ActionEvent
arg0
)
{
goMenu
=
true
;
}
});
this
.
add
(
btn
PlayAgain
);
this
.
add
(
btn
EndGame
);
JButton
btnEndGame
=
new
JButton
(
"Play Again!"
);
btnEndGame
.
setFont
(
new
Font
(
"Tahoma"
,
Font
.
PLAIN
,
32
));
btnEndGame
.
setBounds
(
443
,
297
,
202
,
79
);
btnEndGame
.
addActionListener
(
new
ActionListener
()
{
JButton
btnPlayAgain
=
new
JButton
(
"Play Again!"
);
btnPlayAgain
.
setFont
(
new
Font
(
"Tahoma"
,
Font
.
PLAIN
,
32
));
btnPlayAgain
.
setBounds
(
468
,
297
,
202
,
79
);
btnPlayAgain
.
setBackground
(
new
Color
(
145
,
139
,
139
));
btnPlayAgain
.
setForeground
(
Color
.
WHITE
);
btnPlayAgain
.
addActionListener
(
new
ActionListener
()
{
public
void
actionPerformed
(
ActionEvent
arg0
)
{
playAgain
=
true
;
}
});
this
.
add
(
btn
EndGame
);
this
.
add
(
btn
PlayAgain
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment