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
}