title: How to get an Infinite number of stages to open
body: <p>Basically, I'm just trying to automatically open one stage every second as soon as the program starts. I was going to continue down this route while having multiple Timelines that uses different stages so I can put different images in it. What's the more practical way of doing this?</p>
  
  <pre><code>    mediaPlayer.play();
      int seconds = 1;
      Timeline timeline = new Timeline(
              new KeyFrame(Duration.seconds(seconds), e -&gt; {
                  BorderPane bpnew = new BorderPane();
                  Scene repscene = new Scene(bpnew, 400, 450);
                  Stage repstage = new Stage();
                  repstage.setScene(repscene);
                  repstage.show();
              })
          );
      timeline.setCycleCount(Animation.INDEFINITE);
      timeline.play();
  
      BorderPane root = new BorderPane();
  
      Scene scene = new Scene(root, 400, 450);
      primaryStage.setScene(scene);
      primaryStage.setTitle("Popup Test");
      primaryStage.show();
  }
  </code></pre>