p.setHeight("500px");
layout.setSizeFull();
w.addComponent(p);
tf1 = new TextArea();
tf1.setRows(5);
tf1.setSizeFull();
tf1.setValue(contents);
tf1.setCaption("TextField caption");
layout.addComponent(tf1);
/*
*
* OrderedLayout
*/
VerticalLayout layout2 = new VerticalLayout();
Panel p2 = new Panel(layout2);
p2.setCaption("OrderedLayout");
p2.setWidth("500px");
p2.setHeight("500px");
layout2.setSizeFull();
w.addComponent(p2);
tf2 = new TextArea();
tf2.setRows(5);
tf2.setSizeFull();
tf2.setValue(contents);
tf2.setCaption("TextField caption");
layout2.addComponent(tf2);
/*
*
* GridLayout
*/
VerticalLayout p3l = new VerticalLayout();
p3l.setMargin(true);
Panel p3 = new Panel(p3l);
p3.setCaption("GridLayout");
p3.setWidth("500px");
p3.setHeight("500px");
// p3.setContent(new GridLayout());
p3l.setSizeFull();
p3l.setMargin(false);
GridLayout gl = new GridLayout();
gl.setSizeFull();
gl.setMargin(false);
p3l.addComponent(gl);
w.addComponent(p3);
tf3 = new TextArea();
tf3.setRows(5);
tf3.setSizeFull();
tf3.setValue(contents);
tf3.setCaption("TextField caption");
// p3.getContent().addComponent(tf3);