... 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.
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.