I am running Eclipse with GWT and I have a Frame that I want to update
(refresh) it's contents when a selection is clicked from the
StackPanel.  When I run it right now it does not load the new web page
unless I click refresh several times.  Here is some of the code I'm
using.

                StackPanel classes = new StackPanel();
                DockPanel mainPanel = new DockPanel();
                VerticalPanel cs211s1 = new VerticalPanel();
                Frame syllabi = new Frame("http://www.google.com/";);
                mainPanel.add(syllabi,DockPanel.CENTER);
                syllabi.setSize("440px", "440px");

                if(History.getToken().length() == 1)
                {
                        //mainPanel.remove(syllabi);
                        syllabi.setUrl("http://www.gmail.com/";);
                }
                else
                {
                        syllabi.setUrl("http://docs.google.com/";);
                }

                Hyperlink cs211syl1 = new Hyperlink("Syllabus", "s");
                cs211s1.add(cs211syl1);
                classes.add(cs211s1, "CS 211 Sec. 1");
                mainPanel.add(classes, DockPanel.WEST);

                RootPanel.get().add(mainPanel);

Any help would be greatly appreciated.

--~--~---------~--~----~------------~-------~--~----~
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