Hello. I have a problem with my application. Why don't display all the
2 image in the Web Application Starter Project????


import java.util.Iterator;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class Test implements EntryPoint {

        private VerticalPanel northPanel=new VerticalPanel();
        private VerticalPanel northPanelBackground=new VerticalPanel();

        private DockPanel thePanel=new DockPanel(){
                public void add(Widget widget, DockLayoutConstant direction){
                        super.add(widget,direction);
                        Iterator it=getChildren().iterator();
                        while(it.hasNext()){
                                widget=(Widget) it.next();
                                com.google.gwt.user.client.Element 
cell=DOM.getParent
(widget.getElement());
                                DOM.setElementProperty(cell, "className",
widget.getStylePrimaryName()+"-parent");
                        }
                }
        };

        public void onModuleLoad() {

                northPanel.setSize("100%", "100%");
                northPanel.setStylePrimaryName("north");

                thePanel.setSize("100%", "100%");
                thePanel.add(northPanel,DockPanel.NORTH);
                RootPanel.get().add(thePanel);

                }
}


.north {
background-image:url('banner.jpg');
        background-repeat:no-repeat;
        height:100%;
}
.north-parent {
        background-image:url('bg.jpg');
        background-repeat:repeat-x;
        height:150px;
}


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