Създадох comboBox в Swing и искам да добавя елементи към него в друга функция. Но проблемът е, че елементите не се показват след извикване на тази функция:
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
}
Items
директно къмJComboBox
, добавете новItem
къмComboBoxModel
- person mKorbel   schedule 20.09.2012