Adding effects in a controlled way gives a good appearance to the user interface. There are multiple effects like blurring, shadows, reflection, blooming, and so on. JavaFX provides a set of classes under the javafx.scene.effects package, which can be used to add effects to enhance the look of the application. This package is available in the javafx.graphics module.
In this recipe, we will look at a few effects: blur, shadow, and reflection.