Mega Code Archive

 
Categories / Java Tutorial / SWT
 

Table Styles

Style Description SWT.SINGLEOnly one table row may be selected at a time. This is the default. SWT.MULTIMultiple table rows may be selected, usually by holding down a key on the keyboard (typically the Ctrl key) while clicking the table row. SWT.CHECKPlaces a checkbox at the beginning of each table row. Note that the checked state of the checkbox is independent from the selected state of the table row. SWT.FULL_SELECTIONHighlights the entire row, rather than just the first column of the row, when the row is selected. The default is to highlight only the first column. SWT.HIDE_SELECTIONRemoves the highlight from the selected row (if any) when the window containing the table isn't the foreground window. The default is to keep the row highlighted whether or not the parent window is the foreground window.