Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
k2024
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
tie
ohj2
esimerkit
k2024
Commits
61910dce
Commit
61910dce
authored
1 year ago
by
Vesa Lappalainen
Browse files
Options
Downloads
Patches
Plain Diff
HT melkein valmis
parent
53b9cd0c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
luennot/live18/kelmit/harrastukset.dat
+9
-0
9 additions, 0 deletions
luennot/live18/kelmit/harrastukset.dat
luennot/live18/src/fxKerho/KerhoGUIController.java
+12
-4
12 additions, 4 deletions
luennot/live18/src/fxKerho/KerhoGUIController.java
with
21 additions
and
4 deletions
luennot/live18/kelmit/harrastukset.dat
+
9
−
0
View file @
61910dce
...
...
@@ -2,3 +2,12 @@
20|1|Pitsin nypläys|1914|23
21|2|Pitsin nypläys|1905|46
22|1|Pitsin nypläys|1958|59
23|224|Pitsin nypläys|1947|4
24|224|Pitsin nypläys|1958|54
25|224|Pitsin nypläys|1945|20
26|224|Pitsin nypläys|1929|40
27|224|Pitsin nypläys|1939|3
28|224|Pitsin nypläys|1952|28
29|224|Pitsin nypläys|1931|30
30|224|Pitsin nypläys|1976|35
31|224|Pitsin nypläys|1907|27
This diff is collapsed.
Click to expand it.
luennot/live18/src/fxKerho/KerhoGUIController.java
+
12
−
4
View file @
61910dce
...
...
@@ -169,11 +169,15 @@ public class KerhoGUIController implements Initializable {
* @param nimi tiedosto josta kerhon tiedot luetaan
*/
protected
void
lueTiedosto
(
String
nimi
)
{
kerhonnimi
=
nimi
;
kerhonnimi
=
nimi
;
setTitle
(
"Kerho - "
+
kerhonnimi
);
String
virhe
=
"Ei osata lukea vielä"
;
// TODO: tähän oikea tiedoston lukeminen
// if (virhe != null)
Dialogs
.
showMessageDialog
(
virhe
);
try
{
kerho
.
lueTiedostosta
(
nimi
);
hae
(
0
);
}
catch
(
SailoException
e
)
{
Dialogs
.
showMessageDialog
(
e
.
getMessage
());
}
}
...
...
@@ -193,7 +197,11 @@ public class KerhoGUIController implements Initializable {
* Tietojen tallennus
*/
private
void
tallenna
()
{
Dialogs
.
showMessageDialog
(
"Tallennetetaan! Mutta ei toimi vielä"
);
try
{
kerho
.
tallenna
(
"kelmit"
);
}
catch
(
SailoException
e
)
{
Dialogs
.
showMessageDialog
(
e
.
getMessage
());
}
}
...
...
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