
292 Learning Java through Games
if the order is to go. When the user finishes describing the order, they should press the
order button. As a result, a modal dialog box should appear. A textual description of
the order should appear in the dialog box.
12.17 Lab
Modify the Yahtzee game from Chapter 5 to use a GUI. Five dice should be displayed
in a window. The user should use check boxes to select which dice to reroll. The actual
rolling should happen by pressing the Roll button. The user should be allowed two rerolls.
After that, a modal dialog box should appear that informs the user whether he or she got
Yahtzee or not. Search images from the Internet ...