25.5.5 TipCalculatorController Class
Figures 25.18–25.21 present the TipCalculatorController
class that responds to user interactions with the app’s Button
and Slider
. Replace the code that NetBeans generated in TipCalculatorController.java
with the code in Figs. 25.18–25.21.
Class TipCalculatorController’s import Statements
Figure 25.18 shows class TipCalculatorController
’s import
statements.
Get Java™ How To Program (Early Objects), Tenth 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.