Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EXO2_TP3_ALGO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AREZKI Celia
EXO2_TP3_ALGO
Commits
3d3021c1
Commit
3d3021c1
authored
8 months ago
by
AREZKI Celia
Browse files
Options
Downloads
Patches
Plain Diff
fix shapeApp class to Initialize the JavaFX application and create an instance of Drawer
parent
68e8215b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/shape/tp5/ShapeApp.java
+3
-14
3 additions, 14 deletions
src/main/java/shape/tp5/ShapeApp.java
with
3 additions
and
14 deletions
src/main/java/shape/tp5/ShapeApp.java
+
3
−
14
View file @
3d3021c1
...
...
@@ -2,25 +2,14 @@ package shape.tp5;
import
javafx.application.Application
;
import
javafx.scene.Scene
;
import
javafx.scene.layout.Pane
;
import
javafx.scene.layout.StackPane
;
import
javafx.stage.Stage
;
public
class
ShapeApp
extends
Application
{
@Override
public
void
start
(
Stage
primaryStage
)
{
Drawer
drawer
=
new
Drawer
(
400
,
400
);
Circle
circle1
=
new
Circle
(
100
,
100
,
50
);
Circle
circle2
=
new
Circle
(
300
,
300
,
60
);
Rectangle
rectangle
=
new
Rectangle
(
150
,
150
,
100
,
80
);
drawer
.
add
(
circle1
);
drawer
.
add
(
circle2
);
drawer
.
add
(
rectangle
);
Pane
root
=
new
Pane
();
root
.
getChildren
().
add
(
drawer
);
StackPane
root
=
new
StackPane
(
drawer
);
Scene
scene
=
new
Scene
(
root
,
400
,
400
);
primaryStage
.
setTitle
(
"Éditeur de formes"
);
primaryStage
.
setScene
(
scene
);
...
...
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