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

Chapter 12. SWT Tables > Creating a Searchable Table

12.6. Creating a Searchable Table

Although the Table class has a built-in ability to find items by typing the first character of the text in a cell, this falls far short of providing a full searchable table. Some interface designs call for the ability of the user to specify search text (using a text field) and have the table searched for matching items (perhaps by clicking a button). Providing this functionality for your users is fairly easy.

12.6.1. How do I do that?

This version of TableShellExample, shown in Example 12-2, adds in the ability to search a table based upon user-supplied search text.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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