Java Reference
In-Depth Information
*** Welcome to Shelly's Candy Shop ***
To select an item, enter
1 for Candy
2 for Chips
3 for Gum
4 for Cookies
9 to exit
3
Please deposit 45 cents: 45
Collect your item at the bottom and enjoy.
*** Welcome to Shelly's Candy Shop ***
To select an item, enter
1 for Candy
2 for Chips
3 for Gum
4 for Cookies
9 to exit
9
CANDY
MACHINE:
CREATING
AGUI
8
If you skipped the GUI part of Chapter 6, you can skip this section.
We will now design an application program that creates the GUI shown in Figure 8-22.
FIGURE 8-22 GUI for the candy machine
 
Search WWH ::




Custom Search