import java.awt.*;

// This appears in Core Web Programming from
// Prentice Hall Publishers, and may be freely used
// or adapted. 1997 Marty Hall, hall@apl.jhu.edu.

public class CityChooser extends Choice {
  public CityChooser(String city) {
    String[] cities = {"Chicago", "Dallas",
                       "Los Angeles", "Miami",
                       "New York", "Seattle" };
    for(int i=0; i<cities.length; i++)
      addItem(cities[i]);
    select(city);
  }
  
  public String getCity() {
    return(getSelectedItem());
  }
}
