Professional Documents
Culture Documents
import
import
import
import
import
import
javafx.application.Application;
javafx.scene.Scene;
javafx.scene.layout.Pane;
javafx.scene.paint.Color;
javafx.scene.shape.Circle;
javafx.scene.shape.Polygon;
javafx.stage.Stage;;
20.0,40.0,
25.0,30.0});
star[i].setStroke(Color.GREEN);
star[i].setFill(Color.RED);
star[i].strokeWidthProperty().set(2);
}
Pane pane = new Pane();
pane.getChildren().addAll(arr);
arr[1].setRotate(180);
arr[1].translateXProperty().setValue(370);
arr[3].setRotate(180);
arr[3].translateYProperty().setValue(250);
pane.getChildren().addAll(circle);
pane.getChildren().addAll(star);
circle.setCenterX(360);
circle.setCenterY(200);
star[0].relocate(344, 130);
star[1].relocate(300, 200);
star[2].relocate(388, 200);
Scene scene = new Scene(pane,720,400);
primaryStage.setTitle("BURUNDI FLAG");
primaryStage.setScene(scene);
primaryStage.show();
primaryStage.setResizable(false);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Application.launch(args);
}
}