Skip to content
Snippets Groups Projects
Commit 0b28f0d0 authored by AREZKI Celia's avatar AREZKI Celia
Browse files

add ShapeApp class to test my shape editor.

parent d2bea445
No related branches found
No related tags found
No related merge requests found
package shape.tp5;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
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);
Scene scene = new Scene(root, 400, 400);
primaryStage.setTitle("Éditeur de formes");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment