KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ComboModel


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 JavaDoc[]{"Bird", "Cat", "Dog", "Rabbit", "Pig"} );
13   }
14 }
15
16
Popular Tags