2012-04-17 50 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"/> 

,或者你的某個地方覆蓋其默認樣式。