Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableColumn background color
TableColumn background color [message #445798] Thu, 11 November 2004 15:43 Go to next message
Michael Larbi is currently offline Michael LarbiFriend
Messages: 3
Registered: July 2009
Junior Member
Hi all,

I am writing a piece of code in which I'd like to set change the default
colour of the background of a specific column in a an SWT Table. Can anyone
help?

Regards

Michael
Re: TableColumn background color [message #445799 is a reply to message #445798] Thu, 11 November 2004 15:47 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You can set the background for a specific column for each TableItem created
using:

TableItem.setBackground(int index, Color color);

where index is the column index.

"Michael Larbi" <michael.larbi@larbi.com> wrote in message
news:cn019t$i8e$1@eclipse.org...
> Hi all,
>
> I am writing a piece of code in which I'd like to set change the default
> colour of the background of a specific column in a an SWT Table. Can
> anyone
> help?
>
> Regards
>
> Michael
>
>
Re: TableColumn background color [message #445890 is a reply to message #445799] Thu, 11 November 2004 16:52 Go to previous message
Michael Larbi is currently offline Michael LarbiFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks!

"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:cn01ie$iqa$1@eclipse.org...
> You can set the background for a specific column for each TableItem
created
> using:
>
> TableItem.setBackground(int index, Color color);
>
> where index is the column index.
>
> "Michael Larbi" <michael.larbi@larbi.com> wrote in message
> news:cn019t$i8e$1@eclipse.org...
> > Hi all,
> >
> > I am writing a piece of code in which I'd like to set change the default
> > colour of the background of a specific column in a an SWT Table. Can
> > anyone
> > help?
> >
> > Regards
> >
> > Michael
> >
> >
>
>
Previous Topic:why StyledText's hight is not correct in SWT3.0
Next Topic:Switching between multiple forms...
Goto Forum:
  


Current Time: Thu Oct 29 03:27:43 GMT 2020

Powered by FUDForum. Page generated in 0.01570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top