Java Applets: Interactive Programming
- The purpose of this assignment is
- practice with components
- practice with layout managers
You get to create a party invitation!
You may prefer to work in pairs to try to get this to work.
The following image shows you what you need to do.
- Change the dimensions of the Applet to be width of 600 and height of 200.
- You will need to fill in the following program Invite.java skeleton.
The minimal requirements are as follows:
- Title must be in a different color, bigger sized font, and different background color
- Left side is one color, and looks clean such that the background color
appears as that in the picture, even for the checkbox and radio buttons.
- labels in first and third columns are right-aligned
- The "When:" information is in a different color
- The "Host:" information is in a different color
- "I am attending" is a checkbox
- guests: 0, 1 and 2 are radio buttons in their own group. This means if you select
one in the group, the others will be de-selected. Only one item in the group
can ever be selected at a time.
- The "You:" area is a text field that only accepts one line of text
- costume area is a text area that allows multiple lines of text
- The "Food:" list must contain at least 5 items of food.
- The "Beverage:" drop-down list must contain at least 4 items in it.
Note that the Submit button does not do anything at this time. We will cover events later this semester.
You are required to use the following widgets:
You are required to use the following layout managers:
- You must implement four methods in your program. If you use the skeleten program
(highly recommended), you must put code in each method as appropriate. If you would like
to write your own program, you must implement four methods that make sense.
- You are free to choose the colors.
We suggest you make one addition at a time to the program, compiling
it and testing it until it works correctly,
before working on the next change.
Copyright © 2006-2007: E.S.Boese All rights reserved.