... Value and Block Increment properties to integer values, the Slider
still produces floating-point values as the user moves its thumb. In the app’s Java code, we’ll restrict the Slider
’s values to integers when we respond to its events.
Previewing the Final Layout
You’ve now completed the Tip Calculator’s design. Select Preview > Show Preview in Window to view the final GUI (Fig. 12.17). When we discuss the TipCalculatorController
class in Section 12.5.5, we’ll show how to specify the Calculate Button
’s event handler in the FXML file.
Fig. 12.17
![The screen capture of the final g u i design.](/api/v2/epubs/9780134751962/files/images/p507_001.png)
Final GUI design previewed in Scene Builder.
Specifying the Controller ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.