Ok, I will find another form to make down and up button effect when users click it.
Thanks for your response.
I think that you could do it using two rectangles and their color and opacity attributes.
It seems that triggers are missed for the ShadowFilter class attributes:
So it should be a bug in JavaFX Script API.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.