How to remove all items or a single item from a combo box in LWUIT ?
Is there any functions like removeall() ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
getModel().removeItem(index)and remove the item’s fromComboBox. See the sample code,If you want to remove all item means set the empty
ListModeloncombobox.setModel(model)or pass the emptyVectoronComboBoxconstructor.