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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access