Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Refactoring Finale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Trainings
Refactoring Finale
Commits
66420ca4
Commit
66420ca4
authored
Oct 27, 2022
by
Johannes Link
Browse files
Options
Downloads
Patches
Plain Diff
Collapsed ScorekeeperConsole hierarchy
parent
762ba9f6
Branches
Branches containing commit
Tags
after-1-1
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/scorekeeper/swing/AbstractScorekeeperFrame.java
+0
-16
0 additions, 16 deletions
...main/java/scorekeeper/swing/AbstractScorekeeperFrame.java
src/main/java/scorekeeper/swing/ScorekeeperConsole.java
+6
-3
6 additions, 3 deletions
src/main/java/scorekeeper/swing/ScorekeeperConsole.java
with
6 additions
and
19 deletions
src/main/java/scorekeeper/swing/AbstractScorekeeperFrame.java
deleted
100644 → 0
+
0
−
16
View file @
762ba9f6
package
scorekeeper.swing
;
import
javax.swing.*
;
import
java.awt.*
;
public
abstract
class
AbstractScorekeeperFrame
extends
JFrame
{
protected
static
Font
SCORE_FONT
=
new
Font
(
"Courier New"
,
Font
.
BOLD
,
48
);
protected
static
Font
TIME_FONT
=
new
Font
(
"Courier New"
,
Font
.
PLAIN
,
24
);
public
AbstractScorekeeperFrame
(
String
title
)
throws
java
.
awt
.
HeadlessException
{
super
(
title
);
initComponents
();
}
protected
abstract
void
initComponents
();
}
This diff is collapsed.
Click to expand it.
src/main/java/scorekeeper/swing/ScorekeeperConsole.java
+
6
−
3
View file @
66420ca4
...
...
@@ -5,7 +5,10 @@ import java.awt.*;
import
scorekeeper.*
;
public
class
ScorekeeperConsole
extends
AbstractScorekeeperFrame
implements
ScoreViewer
,
ShotclockChangedListener
{
public
class
ScorekeeperConsole
extends
JFrame
implements
ScoreViewer
,
ShotclockChangedListener
{
private
static
Font
SCORE_FONT
=
new
Font
(
"Courier New"
,
Font
.
BOLD
,
48
);
private
static
Font
TIME_FONT
=
new
Font
(
"Courier New"
,
Font
.
PLAIN
,
24
);
private
JLabel
scoreALabel
;
private
JLabel
scoreBLabel
;
...
...
@@ -40,6 +43,7 @@ public class ScorekeeperConsole extends AbstractScorekeeperFrame implements Scor
this
.
shotclock
=
new
Shotclock
(
this
);
this
.
scorekeeper
=
scorekeeper
;
this
.
clock
=
clock
;
initComponents
();
scorekeeper
.
registerViewer
(
this
);
clock
.
setTimeChangedListener
(
scorekeeper
);
clock
.
reset
();
...
...
@@ -49,8 +53,7 @@ public class ScorekeeperConsole extends AbstractScorekeeperFrame implements Scor
setVisible
(
true
);
}
@Override
protected
void
initComponents
()
{
private
void
initComponents
()
{
setLayout
(
new
BorderLayout
(
5
,
5
));
add
(
createDisplayPanel
(),
BorderLayout
.
PAGE_START
);
add
(
createScoringPanel
(),
BorderLayout
.
CENTER
);
...
...
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