how to fill combo box at run time?
I have a Vector, which is filled at run time.I wanna put these values in a JCombo box, but i dont know how to do it at run time.plz help
# 1
you can either add items one by one using:jComboBox1.addItem("this is a string item1");or an array like this one:jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "item1","item2","item3" }));