Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4104504
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:07:35+00:00 2026-05-20T21:07:35+00:00

I am having problems using a StackPanel Layout. It does not work. It just

  • 0

I am having problems using a StackPanel Layout. It does not work. It just shows the headings but no labels. Even the example from the documentation does not work:

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/StackLayoutPanel.html

java:

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;

public class NavigationWidget extends Composite implements HasText {

    private static NavigationWidgetUiBinder uiBinder = GWT
            .create(NavigationWidgetUiBinder.class);

    interface NavigationWidgetUiBinder extends
            UiBinder<Widget, NavigationWidget> {
    }

    public NavigationWidget() {
        initWidget(uiBinder.createAndBindUi(this));

    }

    public void setText(String text) {
    }

    public String getText() {
        return null;
    }

}

xml:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
    xmlns:g="urn:import:com.google.gwt.user.client.ui">

    <g:HTMLPanel>
        <g:StackLayoutPanel unit='PX'>

            <g:stack>
                <g:header size='30'>
                    People
                </g:header>
                <g:VerticalPanel>
                    <g:Label>People Item 1</g:Label>
                    <g:Label>People Item 2</g:Label>
                    <g:Label>People Item 3</g:Label>
                    <g:Label>People Item 4</g:Label>
                </g:VerticalPanel>
            </g:stack>

            <g:stack>
                <g:header size='30'>
                    Groups  
                </g:header>
                <g:VerticalPanel>
                    <g:Label>Group Item 1</g:Label>
                    <g:Label>Group Item 2</g:Label>
                    <g:Label>Group Item 3</g:Label>
                    <g:Label>Group Item 4</g:Label>
                </g:VerticalPanel>
            </g:stack>

            <g:stack>
                <g:header size='30'>
                    Settings
                </g:header>
                <g:VerticalPanel>
                    <g:Label>Item 5</g:Label>
                    <g:Label>Item 6</g:Label>
                    <g:Label>Item 7</g:Label>
                    <g:Label>Item 8</g:Label>
                </g:VerticalPanel>
            </g:stack>

        </g:StackLayoutPanel>

    </g:HTMLPanel>
</ui:UiBinder> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:07:36+00:00Added an answer on May 20, 2026 at 9:07 pm

    All LayoutPanels must be in a container that implements ProvidesResize, or have their size explicitly set in code. The easiest thing for you to do is set the size of the StackLayoutPanel explicitly: just add height="100%" to your <StackLayoutPanel> element.

    For more control, change your Composite base class to ResizeComposite and get rid of the <g:HTMLPanel> element – just make the StackLayoutPanel the root element of your ui.xml file. You’ll also have to make sure that you only use the NavigationWidget in other LayoutPanels – for instance, you wouldn’t add it to RootPanel.get(), but instead to RootLayoutPanel.get()

    For more info, see http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some problems while using PDO. It all seems correct but I am
I am having problems using multiple queues in jQuery. Consider the following example: $('#example').click(function()
I'm having problems using the jQuery plugin LavaLamp ; I followed this tutorial but
I am having problems using django-tagging . I try to follow the documentation but
hey i am having problems using the sizeof operator in malloc. For example see
I'm having problems using fopen in php. If I open the desired URL by
I am having problems using my custom class with a std::map. The class dynamically
I am having problems using the update method of scala.collection.immutable.HashMap.I don't see the reason
I'm having some problems using cascade operations on hibernate. I have one entity (TripleDBmodel),
I'm using RichFaces and I'm having problems with the fileUpload flash component + IE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.