Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dispose a Tree
Dispose a Tree [message #455199] Tue, 10 May 2005 11:14 Go to next message
Eclipse UserFriend
Originally posted by: akan.aiqa.com

Hi,
I dispose a Tree in runtime and then create a new one but the new one is
not displayed.

What I am doing wrong?

my code is something like this;
tree.dispose();
tree = new Tree(parent, SWT.SINGLE);

thanks,
aiQa
Re: Dispose a Tree [message #455204 is a reply to message #455199] Tue, 10 May 2005 13:43 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Your new Tree will have size 0,0 unless you either:
- invoke layout() on the parent Composite (assuming that the parent
Composite uses a layout)
- invoke setSize() on the Tree (if the parent Composite does not use a
layout)

Grant

"aiQa" <akan@aiqa.com> wrote in message
news:d5q5hv$qm6$1@news.eclipse.org...
> Hi,
> I dispose a Tree in runtime and then create a new one but the new one is
> not displayed.
>
> What I am doing wrong?
>
> my code is something like this;
> tree.dispose();
> tree = new Tree(parent, SWT.SINGLE);
>
> thanks,
> aiQa
Previous Topic:SWT JSeparator?
Next Topic:P5 glove and GEF/SWT
Goto Forum:
  


Current Time: Fri Apr 26 16:42:50 GMT 2024

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

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

Back to the top