Class ComboBoxCountry

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

public class ComboBoxCountry extends JPanel implements ActionListener
CLASS FOR DEFINING COMBO-BOX FOR COUNTRY SELECTION
See Also:
  • Constructor Details

    • ComboBoxCountry

      public ComboBoxCountry(String title)
      CONSTRUCTOR FOR COMBO-BOX FOR SELECTING A COUNTRY VIA GUI
      Parameters:
      title -
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Listens to the combo box.
      Specified by:
      actionPerformed in interface ActionListener
    • updateLabel

      protected void updateLabel(String countryName)
      update displayed label for each selection
    • createImageIcon

      protected static ImageIcon createImageIcon(String path)
      returns an ImageIcon, or null if the path was invalid
    • getCountryEnum

      public Country getCountryEnum()
      Return the selections
      Returns: