// Add an item to the start of the list
cb.insertItemAt("item0", 0);
// Add an item after the first item
cb.insertItemAt("item0.5", 1);
// Add an item to the end of the list
cb.addItem("item3");
// Remove first item
cb.removeItemAt(0);
// Remove the last item
cb.removeItemAt(cb.getItemCount()-1);
// Remove all items
cb.removeAllItems();
No comments:
Post a Comment