Javatpoint Logo
Javatpoint Logo

JavaFX BoxBlur Effect

JavaFX allows us to make the nodes blur by using the JavaFX blur effects. In general, the blur makes the image unclear. JavaFX provides the class javafx.scene.effect.BoxBlur which needs to be instantiated in order to apply the blur effect to the nodes. The Box filter is used in the case of BoxBlur effect in JavaFX.


The properties of the class along with the setter methods are described in the following table.

Property Description Setter Methods
height This is a double type property. It represents the height of the blur effect. setHeight(double value)
width This is a double type property. It represents the width of the blur effect. setWidth(double value)
input This property is of Effect type. This represents the input for the effect. setInput(Effect value)
iterations It represents the number of repetitions of the blur effect. This is of integer type. setIterations(int value)


The class contains two constructors

  1. public BoxBlur() : Creates the new instance with the default value of properties.
  2. public BoxBlur(Double width, Double height, int iterations) : creates the new instance with the specified values.


JavaFX BoxBlur Effect

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA