ComboModel.java |
1 2 import javax.swing.*; 3 4 /** 5 * Combobox Model used in the InitClass sample. 6 */ 7 public class ComboModel extends DefaultComboBoxModel { 8 /** 9 * Constructs a DefaultComboBoxModel object. 10 */ 11 public ComboModel() { 12 super( new Object[]{"Bird", "Cat", "Dog", "Rabbit", "Pig"} ); 13 } 14} 15 16
ComboModel.java |