import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class DinnerMenu extends Applet implements ItemListener
{
int dollar = 0;
int cents = 00;
Label total = new Label("Dinner Price is: $" + dollar + (".") + cents);
Label dm = new Label("Dinner Menu");
Label instruct = new Label(" Please select one item from");
Label instruct2 = new Label(" each category.");
Label instruct3 = new Label(" Your total will be displayed");
Label instruct4 = new Label(" below.");
Label soupl = new Label("Soups********************");
Label entreel = new Label("Entrees********************");
Label dessertl = new Label("Desserts********************");
CheckboxGroup soups = new CheckboxGroup();
Checkbox clam = new Checkbox("Clam Chowder",soups,false);
int s11 = 2;
int s12 = 79;
Checkbox veg = new Checkbox("Vegetable Soup",soups,false);
int s21 = 2;
int s22 = 99;
Checkbox broth = new Checkbox("Peppered Chicken Broth",soups,false);
int s31 = 2;
int s32 = 49;
entree meal = new entree();
/*CheckboxGroup entree = new CheckboxGroup();
Checkbox chic = new Checkbox("Chicken",entree,false);
int e11 = 12;
int e12 = 79;
Checkbox fish = new Checkbox("Fish",entree,false);
int e21 = 10;
int e22 = 99;
Checkbox beef = new Checkbox("Beef",entree,false);
int e31 = 14;
int e32 = 99;*/
CheckboxGroup dessert = new CheckboxGroup();
Checkbox van = new Checkbox("Vanilla Ice Cream",dessert,false);
int d11 = 2;
int d12 = 79;
Checkbox rice = new Checkbox("Rice Pudding",dessert,false);
int d21 = 2;
int d22 = 99;
Checkbox cake = new Checkbox("Cheesecake",dessert,false);
int d31 = 4;
int d32 = 29;
Font ft = new Font("Arial", Font.PLAIN, 14);
Font bigft = new Font("Arial", Font.PLAIN, 28);
Font boldft = new Font("Arial", Font.BOLD, 16);
public void init ()
{
setLayout(new GridLayout(0,1));
setBackground(Color.pink);
setFont(bigft);
add(dm);
setFont(ft);
add(instruct);
add(instruct2);
add(instruct3);
add(instruct4);
setFont(boldft);
add(soupl);
setFont(ft);
add(clam);
add(veg);
add(broth);
setFont(boldft);
add(entreel);
add(meal);
meal.setVisible(true); // comes out blank in the applet
/*setFont(ft);
add(chic);
add(fish);
add(beef);*/
setFont(boldft);
add(dessertl);
setFont(ft);
add(van);
add(rice);
add(cake);
setFont(boldft);
add(total);
// repaint();
}
public void itemStateChanged (ItemEvent e)
{
}
}