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

Chapter 12. SWT Tables > Creating a Simple Table

12.1. Creating a Simple Table

The first step in creating a table such as the one shown in Figure 12-1 is to create an instance of the Table class, passing it the parent container and any style attributes. To that object, add instances of the TableColumn class that represent the columns you wish to appear in your table.

12.1.1. How do I do that?

The code to create a Table looks complex, but for the simple table shown in Figure 12-1, it's straightforward, as shown in Example 12-1.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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