DropShadow dropShadow = node.getEffect() != null ? (DropShadow) node.getEffect() : new DropShadow(BlurType.THREE_PASS_BOX, Color.BLACK, 0.0, 0.0, 0, 0);
node.setEffect(dropShadow);
Timeline timeline = new Timeline();
timeline.getKeyFrames().add(
new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC / 3),
new KeyValue(dropShadow.radiusProperty(), 3.0))
);
timeline.play();
}
public static void dropShadowOff(Node node) {