Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
testIG
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ZOUARI Sami
testIG
Commits
3e9d02d1
Commit
3e9d02d1
authored
3 years ago
by
Sami Zouari
Browse files
Options
Downloads
Patches
Plain Diff
question 10 finie jeu relooké avec TilePane VERSION FINALE
parent
01949009
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/example/testig/HelloApplication.java
+4
-6
4 additions, 6 deletions
src/main/java/com/example/testig/HelloApplication.java
with
4 additions
and
6 deletions
src/main/java/com/example/testig/HelloApplication.java
+
4
−
6
View file @
3e9d02d1
...
...
@@ -28,8 +28,6 @@ public class HelloApplication extends Application {
Button
boutonJouer
=
new
Button
(
"Jouer"
);
Button
boutonQuitter
=
new
Button
(
"Quitter"
);
HBox
box1
=
new
HBox
();
HBox
box2
=
new
HBox
();
TilePane
pane
=
new
TilePane
();
Image
de_face1
=
new
Image
(
getClass
().
getResourceAsStream
(
"/de_face1.png"
),
60
,
60
,
true
,
true
);
...
...
@@ -45,9 +43,9 @@ public class HelloApplication extends Application {
Label
l3
=
new
Label
(
""
,
de1_3
);
Label
l4
=
new
Label
(
"Nombre de fois ou 421 est apparu : 0 Nombre de coups joués : 0"
);
pane
.
setHgap
(
3
0
);
pane
.
setVgap
(
4
0
);
pane
.
setPadding
(
new
Insets
(
40
,
40
,
40
,
4
0
));
pane
.
setHgap
(
2
0
);
pane
.
setVgap
(
2
0
);
pane
.
setPadding
(
new
Insets
(
25
,
25
,
25
,
10
0
));
boutonJouer
.
setOnAction
(
new
Ecouteur
(
l1
,
l2
,
l3
,
l4
));
boutonQuitter
.
setOnAction
(
new
Ecouteur2
());
...
...
@@ -63,7 +61,7 @@ public class HelloApplication extends Application {
ImageView
iconExit
=
new
ImageView
(
exit
);
boutonQuitter
.
setGraphic
(
iconExit
);
Scene
scene
=
new
Scene
(
pane
,
450
,
650
);
Scene
scene
=
new
Scene
(
pane
,
1300
,
225
);
stage
.
setScene
(
scene
);
stage
.
show
();
}
...
...
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