TabLayoutPanel的簡單示例僅顯示不顯示容器小部件選項卡項目可見。 出亂子是它爲IE8TabLayoutPanel僅顯示小部件選項卡項目可見
public class DemoGWT implements EntryPoint {
RootPanel rp = RootPanel.get();
public void onModuleLoad() {
TabLayoutPanel panel = new TabLayoutPanel(25, Unit.PX);
Label a = new Label("One Container");
panel.add(a, "One Hdr");
panel.add(new Label("Two Container"), "Two Hdr");
panel.add(new Label("Three Container"), "Three Hdr");
panel.add(new Label("Four Container"), "Four Hdr");
panel.add(new Label("Five Container"), "Five Hdr");
panel.add(new Label("Six Container"), "Six Hdr");
rp.add(panel);
}
}
panel.setPixelSize(450,100);與此它工作正常,在此之前,該代碼沒有這樣的說法 – JAVAC