Removing all Items from a combo box in Java

前端 未结 9 1199
自闭症患者
自闭症患者 2021-02-06 11:04

I need to remove all items from the combo box

    int itemCount = combo.getItemCount();

    for(int i=0;i

        
9条回答
  •  春和景丽
    2021-02-06 11:22

    removeAllItems() it does remove all things but after the add data to the combo box it will not show there ,the nullPointException will shows

提交回复
热议问题