Skip to content
Snippets Groups Projects
Select Git revision
  • b9754f9b53a2565775c39c7c7749db001c2152d6
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

State.java

Blame
  • Forked from YAGOUBI Rim / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    App.java 760 B
    package shape;
    
    import javafx.application.Application;
    import javafx.geometry.Point2D;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.canvas.Canvas;
    import javafx.scene.canvas.GraphicsContext;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    
    
    
    public class App extends Application {
    
        @Override
        public void start(Stage primaryStage) {
            Drawer drawer = new Drawer(600, 400);
    
            Group root = new Group();
            root.getChildren().add(drawer.getCanvas());
    
            Scene scene = new Scene(root, 400, 400);
    
            primaryStage.setTitle("JavaFX Drawer");
            primaryStage.setScene(scene);
            primaryStage.show();
        }
        public static void main(String[] args) {
            launch(args);
        }
    }