Write a GUI that will let the user sample icons. It should have a menu named Icons that offers three choices: Smiley Face, Duke Waving, and Duke Standing. When the user chooses a menu item, the corresponding icon is displayed (and no other icons are displayed). When the GUI is first displayed, no icons are visible. The picture files for these icons are available in the source code for this chapter on the Web.
The layout of the window, structure of the code, and technique for updating the display based on the user’s selection is similar to that for MemoGUI, Listing 15.1. As with any of the applications that use icons, you will need to make sure that the image files are in an appropriate folder. This is not always the same as where the source files are located.
See the code in IconMenu.java.
You might also like to view...
After sharing a workbook, you should search for and remove any personal information
Indicate whether the statement is true or false.
If you implement FCoE in your storage network, which of the following security issues should concern you?
A. a breach of the Fibre channel network B. a breach of the Ethernet network C. its use of iSCSI commands D. its inability to use encryption