How-To's > How do I create a rollover effect?
Version: JavaFX 1.3The rollover effect replaces the object that is in focus with another object. Sometimes the two objects are very similar and the effect serves to show where focus is currently placed.
The two states can also be completely different from each other. For example, an image of a car can be replaced by a schematic image of the interior of the car.
Rollover effects can be triggered by using onMouseEntered and onMouseExited event handlers, or by binding to the node's hover property.
Examples
Last Updated: April 2010
[Return to How-To's Home]