Foreword
Resources
Code Listings
Foil Sets
Assignments
Solutions
External Resources
SiteMap
Search
Home
| |
[ Up ] [ Assignment-01a ] [ Assignment-01b ] [ Assignment-01c ] [ Assignment-01d ] [ Assignment-02 ] [ Assignment-02a ] [ Assignment-03 ] [ Assignment-03a ] [ Assignment-03b ] [ Assignment-03c ] [ Assignment-03d ] [ Assignment-04 ] [ Assignment-04a ] [ Assignment-04b ] [ Assignment-05 ] [ Assignment-06 ] [ Assignment-07 ]
Designing a graphical user interface
In this programming exercise, we will partially implement the Font dialog in Microsoft Word 97.
- Implement the following features of the Word Font dialog:
 | font label, font textfield, and font list |
 | font style label, font style textfield, and font style list |
 | font size label, font size textfield, and font size list |
 | color label and color pop-up menu |
 | preview textarea |
The three textfields (font name, font style, and font size) are non-editable textfields.
The font names in the font list reflect the installed base of fonts on the client. See
the applet FontList for an example how to
do this.
The list items on the font style list and the font size list may be hardcoded into the
program.
There should be thirteen items on the color pop-up menu, one for each predefined color
of the Java Color class.
The text fragment in the preview textarea should reflect the selections in the lists and
on the pop-up menu.
Preserve the basic layout of the Word Font dialog in your applet, that is, the font
label should be above the font textfield, which should be above the font list (and
similarly for the other components). Use any combination of Java layouts you wish to
accomplish this.
Call the applet WordFontDialog. Put links to WordFontDialog.html
and WordFontDialog.java on your homework page.
|