Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ohj2
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
nikkijax
ohj2
Commits
a63d428b
Commit
a63d428b
authored
1 year ago
by
joonatan
Browse files
Options
Downloads
Patches
Plain Diff
olikohan muutoksia
parent
e9636cff
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
PadelMainGUIView2.fxml
+75
-0
75 additions, 0 deletions
PadelMainGUIView2.fxml
src/HT/fx/OtteluIkkunaGUIController.java
+2
-2
2 additions, 2 deletions
src/HT/fx/OtteluIkkunaGUIController.java
with
77 additions
and
2 deletions
PadelMainGUIView2.fxml
0 → 100644
+
75
−
0
View file @
a63d428b
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ButtonBar?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane
maxHeight=
"-Infinity"
maxWidth=
"-Infinity"
minHeight=
"-Infinity"
minWidth=
"-Infinity"
prefHeight=
"400.0"
prefWidth=
"667.0"
xmlns=
"http://javafx.com/javafx/21"
xmlns:fx=
"http://javafx.com/fxml/1"
>
<children>
<ButtonBar
layoutX=
"200.0"
layoutY=
"366.0"
prefHeight=
"40.0"
prefWidth=
"200.0"
AnchorPane.bottomAnchor=
"-3.0"
AnchorPane.leftAnchor=
"2.5"
AnchorPane.rightAnchor=
"2.5"
>
<buttons>
<Button
mnemonicParsing=
"false"
text=
"Lisää ottelu"
/>
<Button
mnemonicParsing=
"false"
text=
"Lisää pelaaja"
/>
</buttons>
</ButtonBar>
<Label
layoutX=
"14.0"
layoutY=
"6.0"
text=
"Padelkerho"
AnchorPane.leftAnchor=
"2.5"
AnchorPane.topAnchor=
"2.5"
>
<font>
<Font
name=
"System Bold"
size=
"24.0"
/>
</font>
</Label>
<HBox
layoutX=
"3.0"
layoutY=
"42.0"
prefHeight=
"335.0"
prefWidth=
"452.0"
AnchorPane.bottomAnchor=
"35.0"
AnchorPane.leftAnchor=
"3.0"
AnchorPane.rightAnchor=
"160.0"
AnchorPane.topAnchor=
"30.0"
>
<children>
<VBox
prefHeight=
"100.0"
prefWidth=
"150.0"
>
<children>
<Label
text=
"Nimi"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Label>
</children>
</VBox>
<VBox
prefHeight=
"100.0"
prefWidth=
"34.0"
>
<children>
<Label
text=
"Ikä"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Label>
</children>
</VBox>
<VBox
prefHeight=
"335.0"
prefWidth=
"43.0"
>
<children>
<Label
text=
"Rating"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Label>
</children>
</VBox>
<VBox
prefHeight=
"100.0"
prefWidth=
"188.0"
>
<children>
<Label
text=
"Sähköposti"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Label>
</children>
</VBox>
<VBox
prefHeight=
"100.0"
prefWidth=
"35.0"
>
<children>
<Label
text=
"Auto?"
>
<font>
<Font
size=
"14.0"
/>
</font>
</Label>
</children>
</VBox>
</children>
</HBox>
</children>
</AnchorPane>
This diff is collapsed.
Click to expand it.
src/HT/fx/OtteluIkkunaGUIController.java
+
2
−
2
View file @
a63d428b
...
...
@@ -42,8 +42,8 @@ public class OtteluIkkunaGUIController implements ModalControllerInterface<Strin
int
i
=
0
;
Ottelu
ottelu
=
PadelMainGUIController
.
getKarkelo
().
noudaOttelu
(
i
);
int
[]
numerot
=
ottelu
.
getPelaajaNrot
();
joukkue1
.
setText
(
haePelaaja
(
numerot
[
0
])
+
" "
+
haePelaaja
(
numerot
[
1
]));
joukkue2
.
setText
(
haePelaaja
(
numerot
[
2
])
+
" "
+
haePelaaja
(
numerot
[
3
]));
joukkue1
.
setText
(
haePelaaja
(
numerot
[
0
])
+
"
,
"
+
haePelaaja
(
numerot
[
1
]));
joukkue2
.
setText
(
haePelaaja
(
numerot
[
2
])
+
"
,
"
+
haePelaaja
(
numerot
[
3
]));
lopputulos
.
setText
(
ottelu
.
getLopputulos
());
paivamaara
.
setText
(
ottelu
.
getDate
().
toString
());
...
...
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