Using a SimplePanel does what it sounds like you're trying to
accomplish.   Don't call add(~), but .setWidget(otherPanel).   It
handles the 'clear' for you as a SimplePanel can only contain one
widget set in it at a time.


On Mar 10, 3:56 pm, JF <[email protected]> wrote:
> Hi,
>
> i am wondering if the is a way to change panel at runtime with an
> onlick event. Right now what i am doing is
> mainPanel.clear()
> mainPanel.add(otherPanel)
>
> Cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to