CS 4773 Object Oriented Programming, Spring 1999
Assignment 3

Due Tuesday, March 2, 1999 in class


For each part you will put the links in your course web page so that the applet can be run from a browser.

You will turn in complete source code for all parts of this assignment by the start of class on the due date.

Part 1 Starting with ShowFontsInFrame.java and ShowFontsFrameCanvas.java which are available in /usr/local/courses/cs4773/spring99/examples/set2 create three java classes as follows:

The combination of FontsFrame1 and FontsCanvas1 should behave just like ShowFontsFrameCanvas.

Part 2 Create FontsApplet2.java, FontsFrame2.java, and FontsCanvas2.java which are similar to the ones above except that

Implement this in steps. Start by having these classes identical to the ones in Part 1 (except for their names) and do the following:

When everything is working, remove all of the printing to standard output.

Part 3 This part is optional and open-ended.

Copy the three classes with 2 in their names into new classes with 3 in their names. Modify them appropriately so they work together. Now modify only FontsCanvas3 so that it has a better user interface.

One of the problems with the earlier versions is that if the font size is too large, not all of the fonts can be displayed. Use your imagination to make it work better. Note that you are only allowed to modify this one class.