@Override
    protected void hideStage() {
        final Stage stage = this.preloaderStage;

        final ScaleTransition st = new ScaleTransition();
        st.setFromX(1.0);
        st.setToX(0.0);
        st.setDuration(Duration.millis(400));
        st.setNode(stage.getScene().getRoot());
        st.setOnFinished(actionEvent -> stage.hide());
        st.play();
    }
@ Override protected void hideStage ( ) { final Stage stage = this . preloaderStage ; final ScaleTransition st = new ScaleTransition ( ) ; st . setFromX ( 1.0 ) ; st . setToX ( 0.0 ) ; st . setDuration ( Duration . millis ( 400 ) ) ; st . setNode ( stage . getScene ( ) . getRoot ( ) ) ; st . setOnFinished ( actionEvent -> stage . hide ( ) ) ; st . play ( ) ; }
{@inheritDoc}