• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. SWT Lists > Removing Items from a List

7.5. Removing Items from a List

Just as you must add items to the list, it is often necessary to remove items from the list while the application is running. This is most often done to remove a selection that is no longer valid given program conditions.

7.5.1. How do I do that?

To remove an item from the list, you use the appropriate version of the remove( ) method, or you use removeAll() to clear the contents of the list.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint