I am writing a simple program to launch a scene 3 times, but it says that in JavaFX.application... launch(args) can only be used once. Is there anything I could use to do this? I did some research and found Platform.runLater(), but I don't know how I would incorporate that.
public void start(Stage primaryStage) {
Pane pane = new Pane();
Circle c = new Circle();
c.setCenterX(200);
c.setCenterY(50);
c.setRadius(25);
c.setStrokeWidth(4);
c.setStroke(Color.ORANGE);
c.setFill(Color.WHITE);
pane.getChildren().add(c);
Scene scene = new Scene(pane, 300, 300);
primaryStage.setTitle("Circle");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String []args){
for(int i=0;i<3;i++){
launch(args);}
}