By bloid
via javafx.com
Published: May 01 2009 / 01:33
This bit of code enables you to create a button that the viewer can click to run an animated application again. The Reload button consists of a rectangle with a gradient and the text. The mouseover effect from lighter to darker is achieved by increasing the opacity of the gradient. Because the button's opacity is less than 1.0, the green of the circle can be seen moving into the button in this example.
Add your comment