Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with background in Table
Problem with background in Table [message #464164] Thu, 17 November 2005 15:44 Go to next message
Eclipse UserFriend
Originally posted by: bp.maximuss.dk

Hi,

I have a Table with 3 rows and 3 colums. And i only want colour in the
first column and only in specific TableItem.


-----------------------------------
|Colum1 | Column 2 | Column 3 |
-----------------------------------
|No Color | No Color | No Color |
-----------------------------------
|Color | No Color | Color |
-----------------------------------
|No Color | Color | No Color |
-----------------------------------
|Color | Color | Color |
-----------------------------------
|No Color | No Color | No Color |
-----------------------------------

I do hope that i have dont it clear enough what i want to do :-)


Bjarne Pedersen
Re: Problem with background in Table [message #464171 is a reply to message #464164] Thu, 17 November 2005 22:31 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
How about TableItem.setBackground(int, Color)?

"Bjarne" <bp@maximuss.dk> wrote in message
news:Xns9711AB10BC3C6Pedersen@206.191.52.34...
>
> Hi,
>
> I have a Table with 3 rows and 3 colums. And i only want colour in the
> first column and only in specific TableItem.
>
>
> -----------------------------------
> |Colum1 | Column 2 | Column 3 |
> -----------------------------------
> |No Color | No Color | No Color |
> -----------------------------------
> |Color | No Color | Color |
> -----------------------------------
> |No Color | Color | No Color |
> -----------------------------------
> |Color | Color | Color |
> -----------------------------------
> |No Color | No Color | No Color |
> -----------------------------------
>
> I do hope that i have dont it clear enough what i want to do :-)
>
>
> Bjarne Pedersen
Re: Problem with background in Table [message #464180 is a reply to message #464164] Fri, 18 November 2005 08:16 Go to previous messageGo to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
If you are not using plain SWT but a JFACE Tableviewer your
Labelprovider needs to implement ITableColorProvider (additionally).
Please see the javadoc for details.

Yves Harms

> Hi,
>
> I have a Table with 3 rows and 3 colums. And i only want colour in the
> first column and only in specific TableItem.
>
>
> -----------------------------------
> |Colum1 | Column 2 | Column 3 |
> -----------------------------------
> |No Color | No Color | No Color |
> -----------------------------------
> |Color | No Color | Color |
> -----------------------------------
> |No Color | Color | No Color |
> -----------------------------------
> |Color | Color | Color |
> -----------------------------------
> |No Color | No Color | No Color |
> -----------------------------------
>
> I do hope that i have dont it clear enough what i want to do :-)
>
>
> Bjarne Pedersen
Re: Problem with background in Table [message #464182 is a reply to message #464180] Fri, 18 November 2005 10:02 Go to previous message
Eclipse UserFriend
Originally posted by: bp.maximuss.dk

Im using plain SWT, no JFACE in this app.

Bjarne

Yves Harms <user@domain.invalid> wrote in news:dlk2ti$h8u$1
@news.eclipse.org:

> If you are not using plain SWT but a JFACE Tableviewer your
> Labelprovider needs to implement ITableColorProvider (additionally).
> Please see the javadoc for details.
>
> Yves Harms
>
>> Hi,
>>
>> I have a Table with 3 rows and 3 colums. And i only want colour in
the
>> first column and only in specific TableItem.
>>
>>
>> -----------------------------------
>> |Colum1 | Column 2 | Column 3 |
>> -----------------------------------
>> |No Color | No Color | No Color |
>> -----------------------------------
>> |Color | No Color | Color |
>> -----------------------------------
>> |No Color | Color | No Color |
>> -----------------------------------
>> |Color | Color | Color |
>> -----------------------------------
>> |No Color | No Color | No Color |
>> -----------------------------------
>>
>> I do hope that i have dont it clear enough what i want to do :-)
>>
>>
>> Bjarne Pedersen
>
Previous Topic:SWT_AWT and JDialog focus
Next Topic:SWT/AWT flickering problem
Goto Forum:
  


Current Time: Tue Apr 30 07:15:59 GMT 2024

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

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

Back to the top