Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 10 ■ User InterfaCe DesIgn InteraCtIvIty: event hanDlIng anD ImagIng effeCts

Next, open your createTextAssets() method body and add a .setEffect(dropShadow) method call off
each Text object to wire them to the DropShadow effect and the settings you’ve set for the object, as shown
in Figure 10-11.


Figure 10-11. Add a .setEffect(dropShadow) method call to each of your Text objects in the createTextAssets()
method


Figure 10-10. Code your private void createSpecialEffects() method body to create and configure a
DropShadow object

Free download pdf