Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1

Chapter 10 ■ User InterfaCe DesIgn InteraCtIvIty: event hanDlIng anD ImagIng effeCts


Now when you use your Run ➤ Project work process, the Game Rules Button UI control will trigger
the user interface design that is optimized for showing your game players your instruction (help) screen,
as shown in Figure 10-2. We will be doing further design “tweaks” to this design using Java code during this
chapter.


Figure 10-2. Test your UI Button event handling with the Start Game and Game Rules buttons, switching
back and forth


Figure 10-1. Implement the code in the handle() method to reconfigure your helpButton UI compositing layer
objects

Free download pdf