3.4 Graphics Supplement
One picture in color is worth a thousand black-and-white pictures.
—VARIATION ON A CHINESE PROVERB
The oldest, shortest words—‘yes’ and ‘no’—are those which require the most thought.
—PYTHAGORAS
In this section, we continue our discussion of drawing that we began in Chapter 1 and our discussion of JOptionPane
that we began in Chapter 2. First, we tell you how to add color to your JavaFx drawings. In particular, we add color to our happy face application. Next, we show you how to use one more kind of dialog window, namely one for asking yes-or-no questions. We did not present this window in Chapter 2, because you need the branching mechanisms introduced in this chapter to use this kind of window effectively. If you skipped ...
Get Java: An Introduction to Problem Solving and Programming, 8th 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.