Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Set backgroud in the tree
Set backgroud in the tree [message #530996] Mon, 03 May 2010 06:06 Go to next message
Eclipse User
Originally posted by: jedlicka.poll.cz

Hi,

How to set the background items in the tree?

I can set the background items in the root nodes by
tree.getItem(indexRow).setBackground(indexColumn, color) but I don't
know how to set the background of a child's items.

I don't know how to find indexRow tree items.

Any example?

Thanks


Martin
Re: Set backgroud in the tree [message #531412 is a reply to message #530996] Tue, 04 May 2010 15:07 Go to previous message
Praveen  is currently offline Praveen
Messages: 86
Registered: July 2009
Member
> I don't know how to find indexRow tree items.

Did you try TreeItem.getItems() or TreeItem.getItem(index) for
retrieving the child items ? These APIs should be helpful for you.
Please let me know if you are looking for something else.
Previous Topic:SWT Swing integration respective batik (SVG rendering library)
Next Topic:StyledText "Text Editor Demo" from 3.5 M4?
Goto Forum:
  


Current Time: Mon Jul 28 06:24:41 EDT 2014

Powered by FUDForum. Page generated in 0.02549 seconds