public void close(){
  animation.setRate(-1);
  animation.play();
  animation.setOnFinished(null);
}

public void close ( ) { animation . setRate ( - 1 ) ; animation . play ( ) ; animation . setOnFinished ( null ) ; }
close the popup , by default the popup will close when clicking outside the popup content and inside its container
