gwt装饰标签面板没有正确显示标签

时间:2012-04-17 07:11:33

标签: gwt

我在GWT中创建了DecorativeTabPanel

 <g:HorizontalPanel ui:field="hpnlTab">
            <g:DecoratedTabPanel animationEnabled="true" ui:field="tabQuran" width="499px" height="281px">
                <g:Tab text="Quran">
                    <g:HTMLPanel width="249px" height="262px" ui:field="quranTab">
                    <!--  <div class="{style.qFrameMiddle}" id="middleFrame">-->
            <div  ui:field="quranText" class="{style.quranText}">       

            </div> 

        </g:HTMLPanel>
                </g:Tab>
                <g:Tab text="Translation">
                    <g:HTMLPanel width="7cm" height="249px"/>
                </g:Tab>
            </g:DecoratedTabPanel>
        </g:HorizontalPanel>

它的工作正常,显示单词Testing,当我点击测试时,它也会打开HtmlPanel,但问题是,它没有显示TABS,只是一个简单的文字,看到图像

感谢

enter image description here

1 个答案:

答案 0 :(得分:0)

确保ModuleName.gwt.xml中继承了标准主题或另一个:

<inherits name="com.google.gwt.user.theme.standard.Standard"/>

或者你在某处覆盖其默认样式。

相关问题