Я создал 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