Class StartUpRadioButtons

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class StartUpRadioButtons extends JPanel implements ActionListener
CLASS TO DEFINE RADIO BUTTONS FOR GUI extends JPanel from javax.swing (for GUI construction) implements ActionListener from java.awt.event (for data entry)
See Also:
  • Constructor Details

    • StartUpRadioButtons

      public StartUpRadioButtons(Map<String,Integer> options)
      CONSTRUCTOR TO INITIATE RADIO BUTTONS
      Parameters:
      options -
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Listens to the radio buttons
      Specified by:
      actionPerformed in interface ActionListener
    • getChoice

      public int getChoice()
      Return the chosen option
      Returns: