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

Chapter 7. SWT Lists > Populating a List from a Database

7.4. Populating a List from a Database

In the previous examples, the list was populated from items that were known at development time. It is more often the case in business IT development that you must populate the list based on the contents of a database or some other source outside your program code. The goal is to prevent the need to rewrite, recompile, and redeploy in the event that there is a change to the items that populate the list.

7.4.1. How do I do that?

This code populates a list based on the contents of a database it connects to via JDBC:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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