|
Re: Add icon in a TableTree [message #460412 is a reply to message #460403] |
Thu, 25 August 2005 13:09 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
TableTree does not support putting an image in column 0 (report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=25007 ).
However, as of 3.1 TableTree has been deprecated in favour of using a Tree
with TreeColumns. You should use this instead because it utilizes the
native Tree widget properly, and will allow you to put images in the first
column.
Grant
"oscar" <OE_PROMOS@TERRA.ES> wrote in message
news:4b73c6d1af3651cdd97b9bc3f4a6cf6c$1@www.eclipse.org...
> Hello, I am using a swt TableTree component. I have 2 columns.
>
> I am trying to put an Icon for every node. The icon appears if a use:
>
> TableTreeItem item1 = new TableTreeItem(tableTree,SWT.NULL);
> item1.setText(0,"BPL 1");
> item1.setImage(1,image);
>
> However I would like : first the image and then the text.
>
> TableTreeItem item1 = new TableTreeItem(tableTree,SWT.NULL);
> item1.setText(1,"BPL 1");
> item1.setImage(0,image);
>
> But that doesn't work.
>
>
> Any idea?
>
> Thanks.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02956 seconds