2012-04-17 51 views
0

我创建GWT一个DecoratedTabPanel不显示标签GWT装饰标签面板,

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

它的做工精细,显示出测试,当我在测试点击,它也开启了HtmlPanel这个词,但问题是,它没有显示的标签,只是一个简单的文字,看到图像

感谢

enter image description here

回答

0

确保在您的莫duleName.gwt.xml继承了标准的主题或另一个问题:

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

,或者你的某个地方覆盖其默认样式。