[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Can we set a color to a tableItem for checkbox tableViewer?

Hi Nagesh,

TableItem.setGrayed() is for setting an item's checkbox into a half-checked
state, which on non-windows platforms does not involve the colour gray at
all.  You can set a TableItem's text colour with TableItem.setForeground().
The colour of an item's checkbox cannot be changed. (hopefully one of these
answered your question ;-))

Grant


"Nagesh" <nageshvk@xxxxxxxxx> wrote in message
news:55025aa8004ef49041075792ee3e7639$1@xxxxxxxxxxxxxxxxxx
> HI all
>
> Can we set a color to a tableItem for checkbox tableViewer?
>
> TableItem item = new TableItem(table,SWT.FullSelection);
> item.setGrayed(true);//Default it is taking green Color.
>
> I want to set red Color.
>
> Thanks in advance
> Nagesh
>