I am designing a page, which contains a listbox, whose contents(items) need to be changed dynamically.
I can populate it dynamically using
But, i don't see any specific methods to remove an item from it.
Please Help Me in this Regard..
(a) every request on SDN is expected as urgent... If you won't use this word in the future, you'll have more time for solving your problems
(b) If your listbox.getModel() returns the DefaultListModel, you can call removeItem(String key) on the model; see http://media.sdn.sap.com/javadocs/preNW04/SP2/60_sp2_javadocs/htmlb/com/sapportals/htmlb/DefaultList... for details
Hope it helps
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!
The below specified method will be usefull i suppose.
The syntax is as follows.
public void removeSelection(java.lang.String selection)Removes an item from the selected items list.
selection - Key of the item to be deleted from the selected item list.
Reward points for helpful answers.