O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding effects to controls

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required