Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HaRakka
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
rlokilja
HaRakka
Commits
2d17c971
Commit
2d17c971
authored
1 week ago
by
Matilainen Jaakko
Browse files
Options
Downloads
Patches
Plain Diff
lisää tehtävä ikkuna
parent
74c5d005
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/fxHarakka/LisääTehtävä.fxml
+20
-0
20 additions, 0 deletions
src/fxHarakka/LisääTehtävä.fxml
src/fxHarakka/luokat/Tehtavat.java
+0
-20
0 additions, 20 deletions
src/fxHarakka/luokat/Tehtavat.java
with
20 additions
and
20 deletions
src/fxHarakka/LisääTehtävä.fxml
0 → 100644
+
20
−
0
View file @
2d17c971
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.text.Text?>
<BorderPane
maxHeight=
"-Infinity"
maxWidth=
"-Infinity"
minHeight=
"-Infinity"
minWidth=
"-Infinity"
prefHeight=
"199.0"
prefWidth=
"443.0"
xmlns=
"http://javafx.com/javafx/23.0.1"
xmlns:fx=
"http://javafx.com/fxml/1"
>
<center>
<TitledPane
prefHeight=
"200.0"
prefWidth=
"200.0"
BorderPane.alignment=
"CENTER"
>
<content>
<TextField
prefHeight=
"25.0"
prefWidth=
"262.0"
/>
</content>
<graphic>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Lisää tehtävä"
/>
</graphic>
</TitledPane>
</center>
</BorderPane>
This diff is collapsed.
Click to expand it.
src/fxHarakka/luokat/Tehtavat.java
+
0
−
20
View file @
2d17c971
...
...
@@ -94,26 +94,6 @@ public class Tehtavat {
* @param args ei käytössä
*/
public
static
void
main
(
String
args
[])
{
Tehtavat
tehtavat
=
new
Tehtavat
();
Tehtava
labratyo1
=
new
Tehtava
();
Tehtava
luento1
=
new
Tehtava
();
try
{
tehtavat
.
lisaaTehtava
(
labratyo1
);
tehtavat
.
lisaaTehtava
(
luento1
);
tehtavat
.
poistaTehtava
(
luento1
);
System
.
out
.
println
(
"============= Tehtävät testi ================="
);
for
(
int
i
=
0
;
i
<
tehtavat
.
getMaara
();
i
++)
{
Tehtava
tehtava
=
tehtavat
.
anna
(
i
);
System
.
out
.
println
(
"Tehtävä numero: "
+
i
);
}
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"jasen olio ei palauta alkiota"
+
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