Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Help required on Inserting TreeItems in tree


Use the TreeItem constructors that take an index argument.  (Side note: please ask any further swt usage questions on the eclipse newsgroup.  Thanks.).

Grant



Piyush <piyush_jain28@xxxxxxxxxxx>
Sent by: eclipse-dev-admin@xxxxxxxxxxx

04/16/2003 01:02 AM
Please respond to eclipse-dev

       
        To:        eclipse-dev@xxxxxxxxxxx
        cc:        
        Subject:        [eclipse-dev] Help required on Inserting TreeItems in tree



Hi all,

Is it possible to insert a treeitem in tree at the
desired position.
These treeitems can be added at anytime and not at one
go in a for loop like this -

for(int i=0;i<10;i++)
{
TreeItem item[i] = new TreeItem(Tree,SWT.NULL);
item[i].setText("whatever u want");
}

Is it possible to do this. I don't want to use drag
and drop.

please help.
Thanks in advance
piyush


________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
      visit http://in.tv.yahoo.com
_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/eclipse-dev



Back to the top