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
pohjalma
ohj2
Commits
7e1db1cc
Commit
7e1db1cc
authored
3 years ago
by
pohjalma
Browse files
Options
Downloads
Patches
Plain Diff
kayttaja lisayksia
parent
53c44c1e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/htLuokat/Kayttajat.java
+1
-1
1 addition, 1 deletion
src/htLuokat/Kayttajat.java
src/htScene/muokkaaController.java
+4
-4
4 additions, 4 deletions
src/htScene/muokkaaController.java
src/htScene/muokkausView.fxml
+0
-2
0 additions, 2 deletions
src/htScene/muokkausView.fxml
with
5 additions
and
7 deletions
src/htLuokat/Kayttajat.java
+
1
−
1
View file @
7e1db1cc
...
@@ -17,7 +17,7 @@ public class Kayttajat {
...
@@ -17,7 +17,7 @@ public class Kayttajat {
* luodaaan uusi kayttajat olio
* luodaaan uusi kayttajat olio
*/
*/
public
Kayttajat
()
{
public
Kayttajat
()
{
Kayttaja
uusi
=
new
Kayttaja
();
Kayttaja
uusi
=
new
Kayttaja
();
for
(
int
i
=
0
;
i
<
kayttajat
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
kayttajat
.
length
;
i
++)
{
kayttajat
[
i
]
=
uusi
;
kayttajat
[
i
]
=
uusi
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/htScene/muokkaaController.java
+
4
−
4
View file @
7e1db1cc
...
@@ -211,10 +211,9 @@ public class muokkaaController implements Initializable{
...
@@ -211,10 +211,9 @@ public class muokkaaController implements Initializable{
*/
*/
public
void
hae
()
{
public
void
hae
()
{
for
(
int
i
=
0
;
i
<
kayttajat
.
getlength
();
i
++)
// ei toimi oikein!!
{
kohdeValitsin
.
add
(
kayttajat
.
haeKayttaja
(
0
).
getNimi
(),
kayttajat
.
haeKayttaja
(
0
));
kohdeValitsin
.
add
(
kayttajat
.
haeKayttaja
(
i
).
getNimi
(),
kayttajat
.
haeKayttaja
(
i
));
}
}
}
...
@@ -232,5 +231,6 @@ public class muokkaaController implements Initializable{
...
@@ -232,5 +231,6 @@ public class muokkaaController implements Initializable{
// TODO Auto-generated catch block
// TODO Auto-generated catch block
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
src/htScene/muokkausView.fxml
+
0
−
2
View file @
7e1db1cc
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
<?import fi.jyu.mit.fxgui.ListChooser?>
<?import fi.jyu.mit.fxgui.ListChooser?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.AnchorPane?>
...
@@ -20,7 +19,6 @@
...
@@ -20,7 +19,6 @@
<Font
size=
"20.0"
/>
<Font
size=
"20.0"
/>
</font>
</font>
</Label>
</Label>
<ListView
layoutX=
"323.0"
layoutY=
"112.0"
prefHeight=
"177.0"
prefWidth=
"197.0"
/>
<Label
alignment=
"CENTER"
layoutX=
"219.0"
layoutY=
"-10.0"
prefHeight=
"90.0"
prefWidth=
"162.0"
text=
"Muokkaa"
>
<Label
alignment=
"CENTER"
layoutX=
"219.0"
layoutY=
"-10.0"
prefHeight=
"90.0"
prefWidth=
"162.0"
text=
"Muokkaa"
>
<font>
<font>
<Font
size=
"14.0"
/>
<Font
size=
"14.0"
/>
...
...
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