File DrawPerson.java contains an applet that creates a Person object and draws it. File Person.java contains the Person class, where a Person currently consists only of a blue shirt. Copy these files and the associated html file to your directory, compile DrawPerson.java, and run it using the appletviewer to see what it does. Now modify Person.java so that it draws a whole person as follows:
Print DrawPerson.java and Person.java to turn in.
The files StyleOptions.java and StyleGUI.java are adapted from Listings 6.18 and 6.19 of the text. (A variable fontSize is used rather than the constant FONT_SIZE and the variable style is an instance variable rather than local to the itemStateChanged method). Save these files to your directory and compile and run StyleOptions.java to see how it works. This is the driver; StyleGUI.java contains the code for the GUI.
Now you will add a set of 3 radio buttons to let the user choose among three font sizes. The method of adding the radio buttons will be very similar to that in the QuoteGUI class (Listing 6.21 of the text), so study this example before you continue.
Do the following to add the radio buttons to the GUI: