import java.awt.*; import javax.swing.*; public class CheckBoxes extends JApplet { JCheckBox jumboSize = new JCheckBox("Jumbo Size", true); JCheckBox frogLegs = new JCheckBox("Frog Leg Grande", true); JCheckBox fishTacos = new JCheckBox("Fish Taco Platter", false); JCheckBox emuNuggets = new JCheckBox("Emu Nuggets", false); public void init() { FlowLayout flo = new FlowLayout(); Container pane = getContentPane(); ButtonGroup meals = new ButtonGroup(); meals.add(frogLegs); meals.add(fishTacos); meals.add(emuNuggets); pane.setLayout(flo); pane.add(jumboSize); pane.add(frogLegs); pane.add(fishTacos); pane.add(emuNuggets); setContentPane(pane); } }