VerticalLayout pl = new VerticalLayout();
pl.setMargin(true);
p = new Panel("This is a panel", pl);
p.setSizeFull();
Label label1 = new Label("This is a table!");
label1.setHeight("1500px");
label1.setWidth("1500px");
pl.addComponent(label1);
p.setScrollTop(50);
// MyTable table1 = new MyTable(24, "table1");
// table1.loadTable(1000);
// MyTable table2 = new MyTable(24, "table2");
// table2.loadTable(1000);
// MyTable table3 = new MyTable(24, "table3");
// table3.loadTable(1000);
// MyAccordion accordion = new MyAccordion(new Component[] { table1,
// table2 }, "Test");
Label a = new Label("abc123");
TextField tf = new TextField("A large textfield");
tf.setHeight("2500px");
tf.setWidth("2500px");
TabsAcc tab = new TabsAcc(new Component[] { p, a, tf });
tab.addListener(this);
mainLayout.addComponent(sp);
sp.addComponent(new Label("C 1"));
// sp.addComponent(new Label("C 2"));
// sp.setHeight("100px");
sp.addComponent(tab);
// mainLayout.addComponent(new Label("Filler"));
// mainLayout.addComponent(tab);
// mainLayout.setExpandRatio(tab, 1.0f);
// sp.addComponent(new Label("Filler"));
// sp.addComponent(tab);
pl = new VerticalLayout();
pl.setMargin(true);
p = new Panel("This is a panel", pl);
p.setWidth("2000px");
p.setHeight("2000px");
VerticalLayout p2l = new VerticalLayout();
p2l.setMargin(true);
Panel p2 = new Panel("This is another panel", p2l);
p2.setWidth("2500px");
p2.setHeight("2500px");
label1 = new Label("This is a table!");
label1.setHeight("1500px");
label1.setWidth("1500px");
p2l.addComponent(label1);
pl.addComponent(p2);