Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
the hurlers
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
Herman Andersen Dyrkorn
the hurlers
Commits
7945090c
Commit
7945090c
authored
4 years ago
by
Anders Langlie
🦀
Browse files
Options
Downloads
Plain Diff
Merge branch '6-display-list' into 'master'
Resolve "Display list" Closes
#6
See merge request
!9
parents
196f19b6
864f6114
No related branches found
No related tags found
1 merge request
!9
Resolve "Display list"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sample/Main.java
+2
-0
2 additions, 0 deletions
src/sample/Main.java
src/sample/Thought.java
+1
-1
1 addition, 1 deletion
src/sample/Thought.java
src/sample/ThoughtManager.java
+20
-1
20 additions, 1 deletion
src/sample/ThoughtManager.java
with
23 additions
and
2 deletions
src/sample/Main.java
+
2
−
0
View file @
7945090c
...
@@ -13,6 +13,8 @@ public class Main extends Application {
...
@@ -13,6 +13,8 @@ public class Main extends Application {
Parent
root
=
FXMLLoader
.
load
(
getClass
().
getResource
(
"sample.fxml"
));
Parent
root
=
FXMLLoader
.
load
(
getClass
().
getResource
(
"sample.fxml"
));
primaryStage
.
setTitle
(
"Hurl your thoughts"
);
primaryStage
.
setTitle
(
"Hurl your thoughts"
);
primaryStage
.
setScene
(
new
Scene
(
root
,
700
,
498
));
primaryStage
.
setScene
(
new
Scene
(
root
,
700
,
498
));
ThoughtManager
tm
=
new
ThoughtManager
();
tm
.
makeList
();
primaryStage
.
show
();
primaryStage
.
show
();
}
}
...
...
This diff is collapsed.
Click to expand it.
src/sample/Thought.java
+
1
−
1
View file @
7945090c
package
sample
;
package
sample
;
public
class
Thought
{
public
class
Thought
{
p
rivate
String
thoughtText
;
p
ublic
String
thoughtText
;
public
Thought
(
String
txt
){
public
Thought
(
String
txt
){
thoughtText
=
txt
;
thoughtText
=
txt
;
...
...
This diff is collapsed.
Click to expand it.
src/sample/ThoughtManager.java
+
20
−
1
View file @
7945090c
...
@@ -3,5 +3,24 @@ package sample;
...
@@ -3,5 +3,24 @@ package sample;
import
java.util.List
;
import
java.util.List
;
public
class
ThoughtManager
{
public
class
ThoughtManager
{
private
List
<
Thought
>
thoughts
;
public
List
<
Thought
>
thoughts
;
public
void
makeList
()
{
Thought
t
=
new
Thought
();
t
.
thoughtText
=
"yeet"
;
Thought
t2
=
new
Thought
();
t2
.
thoughtText
=
"yeet1"
;
Thought
t3
=
new
Thought
();
t3
.
thoughtText
=
"yeet2"
;
Thought
t4
=
new
Thought
();
t4
.
thoughtText
=
"yeet3"
;
Thought
t5
=
new
Thought
();
t5
.
thoughtText
=
"yeet4"
;
this
.
thoughts
.
add
(
t
);
this
.
thoughts
.
add
(
t2
);
this
.
thoughts
.
add
(
t3
);
this
.
thoughts
.
add
(
t4
);
this
.
thoughts
.
add
(
t5
);
}
}
}
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