|
|
The art and science of user interface design is an important branch of computer science. In this assignment, we will use Java's Abstract Windowing Toolkit to build a graphical user interface. Until recently, Macintosh fonts and desk accessories were installed using a program called Font/DA Mover, a utility that copies fonts and DAs from one disk to another. Here's a screen shot of Font/DA Mover poised to copy a font from a floppy disk called "Fonts #1" to a hard disk called "Hard Disk": As you can see, the Font/DA Mover has a complex user interface consisting of scrollable lists, pushbuttons, radio buttons, and text labels. Many of these components are dynamic, that is, as the user interacts with the controls, the text and button labels change. Moreover, when the user clicks the radio button labeled "Desk Accessory", the contents of the scrollable lists change from fonts to desk accessories: In the above screen shot, the Font/DA Mover is ready to copy a desk accessory called "Calculator" from the hard disk to a floppy disk called "DAs". Since the Font/DA Mover interacts with the underlying file system, it must be written as a Java application, not an applet. (Applets do not have access to the underlying file system for security reasons.) For the purposes of this assignment, however, we will write an applet that simulates the Font/DA Mover by hard-coding a fixed set of fonts and/or desk accessories.
|