I have created a comboBox in Swing and I want to add items on it in another function. But the problem is that items are not displaying after calling that function:
public void addItems()
{
combo.addItem("");
// i want to add items here when this function is being called
// but those items are not displaying after calling this function
// i m calling this function on button click
}