public static void showMessageBar(String message) {
        lblMessage.setText(message);
        add(messageBar);
        FadeTransition fadeIn = FadeTransitionBuilder.create()
                .node(messageBar)
                .duration(Duration.seconds(0.2))
                .fromValue(0.0)
                .toValue(1.0)
                .build();
        FadeTransition fadeOut = FadeTransitionBuilder.create()
                .node(messageBar)
                .delay(Duration.seconds(1.2))
                .duration(Duration.seconds(1.0))
                .fromValue(1.0)
                .toValue(0.0)
                .build();
        SequentialTransition fade = new SequentialTransition(fadeIn, fadeOut);
        fade.setOnFinished(new EventHandler<ActionEvent>() {

            @Override
            public void handle(ActionEvent arg0) {
                remove(messageBar);
            }
        });

        fade.play();
    }