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

Chapter 5. SWT Text Fields > Populating Text Fields from a Database

5.7. Populating Text Fields from a Database

If you are developing corporate IT applications, you will invariably find a need to populate a series of text fields based upon a database query. To do that, you must understand how to work with the contents of a JDBC ResultSet.

5.7.1. How do I do that?

The code to accomplish this task is straightforward. The following code will connect to the MS Access Northwind sample database, using the JDBC/ODBC Bridge driver:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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