combox in java code example
Example 1: combox in java
combo1.addItem("Bashful");
combo1.addItem("Doc");
combo1.addItem("Dopey");
combo1.addItem("Grumpy");
combo1.addItem("Happy");
combo1.addItem("Sleepy");
combo1.addItem("Sneezy");
Example 2: combox in java
JComboBox combo1 = new JComboBox();