Mega Code Archive

 
Categories / Java Tutorial / SWT
 

Adding Rows

The TableItem class represents rows in the table. The parent of a TableItem is the containing Table. Its constructor: TableItem(Table parent, int style) TableItem(Table parent, int style, int index) Using the second constructor inserts the row at the specified zero-based index. Passing an index out of range throws an IllegalArgumentException. No styles apply for TableItem, so you should always pass SWT.NONE.