Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vedonlyontilaskuri
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oihietan
Vedonlyontilaskuri
Commits
35d2eb2b
Commit
35d2eb2b
authored
1 week ago
by
Genas Petrus Joonatan
Browse files
Options
Downloads
Patches
Plain Diff
parannuksia
parent
f2416b47
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/liiga/LisaaTulos.java
+15
-15
15 additions, 15 deletions
src/liiga/LisaaTulos.java
src/liiga/Main.java
+0
-1
0 additions, 1 deletion
src/liiga/Main.java
with
15 additions
and
16 deletions
src/liiga/LisaaTulos.java
+
15
−
15
View file @
35d2eb2b
...
@@ -68,33 +68,33 @@ public class LisaaTulos {
...
@@ -68,33 +68,33 @@ public class LisaaTulos {
@FXML
@FXML
private
void
initialize
()
{
private
void
initialize
()
{
// Etusivu napin alustus
// Etusivu napin alustus
etusivulleNappi
.
setOnAction
(
event
->
{
etusivulleNappi
.
setOnAction
(
event
->
{
try
{
try
{
vaihdaNakyma
();
vaihdaNakyma
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
});
});
// Aluksi kotijoukkue,vierasjoukkue, lopputulos ja liigan valinta on null
// Aluksi kotijoukkue,vierasjoukkue, lopputulos ja liigan valinta on null
valitseKotijoukkue
.
setValue
(
null
);
valitseKotijoukkue
.
setValue
(
null
);
valitseVierasjoukkue
.
setValue
(
null
);
valitseVierasjoukkue
.
setValue
(
null
);
valitseLopputulos
.
setValue
(
null
);
valitseLopputulos
.
setValue
(
null
);
valitseLiigaNappi
.
setValue
(
null
);
valitseLiigaNappi
.
setValue
(
null
);
// Aluksi kertoimet ovat null
// Aluksi kertoimet ovat null
homekerroin
.
setText
(
""
);
homekerroin
.
setText
(
""
);
awaykerroin
.
setText
(
""
);
awaykerroin
.
setText
(
""
);
drawkerroin
.
setText
(
""
);
drawkerroin
.
setText
(
""
);
// Lisää liigan valintanappiin arvot
// Lisää liigan valintanappiin arvot
valitseLiigaNappi
.
getItems
().
addAll
(
"Bundesliiga"
,
"Valioliiga"
);
valitseLiigaNappi
.
getItems
().
addAll
(
"Bundesliiga"
,
"Valioliiga"
);
valitseLiigaNappi
.
setOnAction
(
event
->
{
valitseLiigaNappi
.
setOnAction
(
event
->
valittuLiiga
=
valitseLiigaNappi
.
getValue
()
;
valittuLiiga
=
valitseLiigaNappi
.
getValue
()
}
);
);
// Lisää lopputuloksen vaihtoehdot: A, D, H
// Lisää lopputuloksen vaihtoehdot: A, D, H
valitseLopputulos
.
getItems
().
addAll
(
"A"
,
"D"
,
"H"
);
valitseLopputulos
.
getItems
().
addAll
(
"A"
,
"D"
,
"H"
);
...
...
This diff is collapsed.
Click to expand it.
src/liiga/Main.java
+
0
−
1
View file @
35d2eb2b
...
@@ -5,7 +5,6 @@ import javafx.fxml.FXMLLoader;
...
@@ -5,7 +5,6 @@ import javafx.fxml.FXMLLoader;
import
javafx.scene.Parent
;
import
javafx.scene.Parent
;
import
javafx.scene.Scene
;
import
javafx.scene.Scene
;
import
javafx.stage.Stage
;
import
javafx.stage.Stage
;
import
javafx.stage.Stage
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Objects
;
import
java.util.Objects
;
...
...
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