[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Table columns

This has come up before (I forget the exact names of the threads), but the
answer is that in essence, a Table (which is what is inside a TableViewer) is in
a way composed of a list/vector/array of TableItems, with each TableItem
representing a row of the table (the column-headings of the Table are a separate
Widget, called a TableColumn, and can have text and an Image).  Each row of the
Table can only have one color, because each row is a single TableItem.  Soryy, I
wish it were otherwise too ...

HTH,
Paul K

Craig Shearer wrote:

> Hi
>
> I'm trying to set up a table so that one column is a label or header column,
> and the second column is editable. While I haven't got to the editable bit
> yet, is there any way I can set up my first column so that the background
> color is the widget background color? I've had a look at the TableItem
> class, but setting the background on a TableItem object affects a whole row,
> and not a column.
>
> I've also tried using the JFace TableViewer class with success to display my
> table, but still can't find anything to do what seems to be a relatively
> common requirement.
>
> Any help much appreciated...
>
> Craig