@@ -0,0 +1,2026 @@
+/**%0A * Steven Ward%0A * ButtonPanel.java %7C Radio Buttons Project%0A *%0A * This file contains the definition of the ButtonPanel class, which is described below.%0A *%0A * Due Date: November 6, 2016%0A *%0A */%0A%0Aimport java.awt.*;%0Aimport java.awt.event.*;%0Aimport javax.swing.*;%0A%0A/**%0A * Specialized panel to display, and handle ActionEvents from, this program's radio%0A * buttons.%0A *%0A * A subclass of JPanel defining one of the panels to be used in this program's GUI.%0A * Contains three (3) JRadioButton components as well as an inner class implementing%0A * ActionListener, as its object member fields. This class also defines a %22handler%22%0A * method to perform the proper behaviors upon creation of an ActionEvent by one of the%0A * radio buttons.%0A *%0A * @see WardRadioButtons#MainWindow%0A * @see ImagePanel%0A * @see javax.swing.JPanel%0A * @see javax.swing.JRadioButton%0A * @see java.awt.event.ActionListener%0A */%0Apublic class ButtonPanel extends JPanel %7B%0A%0A  public final ActionListener buttonListener = new RadioButtonListener();%0A%0A  private static final long serialVersionUID = 0L;%0A%0A  private JRadioButton dogButton, bearButton, otherButton;%0A  private ButtonGroup radioButtonGroup = new ButtonGroup();%0A%0A  public ButtonPanel( ) %7B%0A    dogButton = new JRadioButton(%22DOG%22);%0A    bearButton = new JRadioButton(%22BEAR%22);%0A    otherButton = new JRadioButton(%22OTHER%22);%0A%0A    this.setLayout(new FlowLayout());%0A    this.add(dogButton);%0A    this.add(bearButton);%0A    this.add(otherButton);%0A%0A    dogButton.addActionListener(buttonListener);%0A    bearButton.addActionListener(buttonListener);%0A    otherButton.addActionListener(buttonListener);%0A%0A    radioButtonGroup.add(dogButton);%0A    radioButtonGroup.add(bearButton);%0A    radioButtonGroup.add(otherButton);%0A  %7D%0A%0A  private class RadioButtonListener implements ActionListener %7B%0A%0A    @Override%0A    public void actionPerformed(ActionEvent event) %7B%0A      handleRadioButtonEvent(event.getSource());%0A    %7D%0A  %7D%0A%0A  private void handleRadioButtonEvent(Object component) %7B%0A    // TODO: WRITE HANDLER FOR RADIO BUTTON EVENTS%0A  %7D%0A%7D%0A

Add first draft of 'ButtonPanel' class for WardRadioButton program - undefined 'handleRadioButtonEvent(Object)' method should be the only thing that needs to be finished...