1 import javax.swing.DefaultListModel;
2 
3 public class Model extends DefaultListModel<String> {
4   /**
5   * Constructs a DefaultComboBoxModel object.
6   */
7   public Model() {
8       for (String s : new String[] {"Bird", "Cat", "Dog", "Rabbit", "Pig"} ) {
9       this.addElement(s);
10    }
11  }
12}