2014-02-28 86 views
0

我試圖TabLayoutPanel加入到DisclosurePanel但是當我展開DisclosurePanel一個選項卡僅閃爍,我看不到標籤面板及其內容: 這裏是我的代碼:GWT TabLayoutPanel到披露面板

 TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM); 


        ..... 

       I have FieldPanel which correctly works 
       for (Widget w : fieldPanelContent) { 
       tabPanel.add(w, "Internal"); 
       } 

      } 

     } 

    } 

    } 

    tabPanel.setVisible(true); 

    tabPanel.setTitle("My TAb Panel"); 
    tabPanel.selectTab(0); 
    parent.add(tabLayoutPanel); 
where parent is my DisclosurePanel 

莫非你請,幫我解決這個問題?先謝謝你!

回答

0

您正在將佈局與非佈局面板混合使用。如果您沒有明確地將TabLayoutPanel的大小設置在DisclosurePanel之內,則此操作無法正常進行。

+0

是的,你是對的!當我用TabPanel更改TabLayoutPanel時,它工作正常。非常感謝你! – user2739823