Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How can I reconstruct an SWT interface dinammically?
How can I reconstruct an SWT interface dinammically? [message #300179] Fri, 03 March 2006 09:25 Go to next message
Eclipse UserFriend
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 #300181 is a reply to message #300179] Fri, 03 March 2006 10:02 Go to previous messageGo to next message
Eclipse UserFriend
see
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet98. java

"Alexandre Gazola" <alexandregazola@yahoo.com.br> wrote in message
news:c7be135c290f7e48d4321586188da40c$1@www.eclipse.org...
> 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 #300199 is a reply to message #300181] Fri, 03 March 2006 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexandregazola.yahoo.com.br

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

can anybody help?

thanks
Re: How can I reconstruct an SWT interface dinammically? [message #300201 is a reply to message #300199] Fri, 03 March 2006 14:58 Go to previous message
Eclipse UserFriend
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
Previous Topic:Local jdk javadoc setup
Next Topic:How to update the elements of a Composite?
Goto Forum:
  


Current Time: Fri May 30 02:30:47 EDT 2025

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

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

Back to the top