I am still new to this stuff; but found that this way is working:

first create a new panel class:

---------
import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.ui.AbsolutePanel;

public class MyPanel extends AbsolutePanel {
        public MyPanel(String class) {
        
super(Document.get().createDivElement().<com.google.gwt.user.client.Element>
cast());
                this.setStyleName(class);
        }
}
---------

Then you can use it like:

private MyPanel top = new MyPanel("footer_top");
private MyPanel content = new MyPanel("footer_content");

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