JavaFX – Effects

I continue reading my JavaFX book and learning by example and continue finsing amzing all the new things I am learning and trying out.

So I created a quick and small example of a simple JavaFX GUI with a couple of effects, the EXIT button is blur and the main text has a reflection.

I am using the following effects.


MotionBlur mb = new MotionBlur();
mb.setRadius(05.0f);
mb.setAngle(45.0f);


Reflection reflect = new Reflection();
reflect.setFraction(0.9);

Here is what you get once you compile the code, I am using java JDK 1.8.0.25

simplefx-effects

If you want to try it for yourself, here is the full source code. simplefx-effects source

Leave a Reply