Use TabPanel, not TabLayoutPanel. http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/TabPanel.html
That should make things easier. On Jan 13, 4:52 pm, Stine Søndergaard <stinespl...@gmail.com> wrote: > Hmm... let me see... is something like this at all a right approach? :] > > public class Test implements EntryPoint { > > public final void onModuleLoad() { > TabLayoutPanel mainTabs = new TabLayoutPanel(40, Style.Unit.PX); > mainTabs.add(new HTML("Page A"), new MyTab("images/a.jpg", "Tab > A")); > mainTabs.add(new HTML("Page B"), new MyTab("images/b.jpg", "Tab > B")); > RootLayoutPanel.get().add(mainTabs); > } > > class MyTab extends HTML { > public MyTab(String icon, String text) { > super("<div style='background-image: url(" + icon + ");'> " + > text + "</div>"); > } > } > > > > }
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.