How can I reconstruct an SWT interface dinammically? [message #300179] |
Fri, 03 March 2006 09:25  |
Eclipse User |
|
|
|
Originally posted by: alexandregazola.yahoo.com.br
Hi,
I have an SWT interface (a Dialog, for instance). This dialog has some
check buttons, labels, texts and a button called "Refresh". When the user
clicks on the button, I want to reconstruct this interface (the same
interface) with different elements (other check buttons, other labels,
other texts and the "Refresh" button) dinammically. How can I do this?
regards,
Alexandre
|
|
|
|
|
Re: How can I reconstruct an SWT interface dinammically? [message #300201 is a reply to message #300199] |
Fri, 03 March 2006 14:58  |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
Alexandre Gazola <alexandregazola@yahoo.com.br> wrote:
> Is there how to reconstruct just one composite?
>
> For example, I have a composite called composite2 inside a composite1
> that is inside the shell. My composite2 has some widgets in it
> (including the button). But, when I use the code bellow, after
> clicling on the button, by composite (with all its widgets) disappear
> from my interface (instead of appearing with my new components).
>
> composite2.dispose();
> composite2 = new Composite(composite1, SWT.NONE);
> // create all widgets here
>
composite1.layout(true);
> can anybody help?
>
> thanks
--
Sunil
|
|
|
Powered by
FUDForum. Page generated in 0.10225 seconds