title: how to pause sequential transition of JAVAFX
body: <p>Code below show part of the function of my sequential transition,i wish to use <strong>Pslideshow.pause()</strong> to enable user to pause the slide and also  continue play the slide. </p>
  
  <p>But i realised, once i use <strong>Pslideshow.play()</strong> , the status of the Pslideshow change into Stopped immediately when i clicked on the pane which i create to display the slide.</p>
  
  <p>What should i do in order to allow user to pause and play again my sequential transition? Thanks in advance!</p>
  
  <pre><code>public void start(){
  for (Label slide : LabelSlides) {
  
      SequentialTransition sequentialTransition = new SequentialTransition();
      FadeTransition fadeIn = getFadeTransition(slide, 0.0, 1.0, 2000);
      PauseTransition stayOn = new PauseTransition(Duration.millis(2000));
      FadeTransition fadeOut = getFadeTransition(slide, 1.0, 0.0, 2000); 
  
      sequentialTransition.getChildren().addAll(fadeIn, stayOn, fadeOut);
      slide.setOpacity(0);
      this.root.setStyle("-fx-background-color: Black");
      this.root.getChildren().add(slide);
      Pslideshow.getChildren().add(sequentialTransition); 
      }
  
      Pslideshow.play();
  }
  
  @FXML 
  public void PlaySlide(ActionEvent event) throws IOException
  {   Node node=(Node) event.getSource();
      Stage stage=(Stage) node.getScene().getWindow();
      Stage newStage = new Stage();
      newStage.setWidth(stage.getWidth());
      newStage.setHeight(stage.getHeight());
      Scene_3Controller simpleSlideShow = new Scene_3Controller();      
      Scene scene = new Scene(simpleSlideShow.getRoot());
      MediaP.play();
      simpleSlideShow.start();       
      scene.setOnMouseClicked(new ClickHandler());      
      newStage.setScene(scene);
      newStage.show();
  }  
  </code></pre>