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