// Adding a panel with label and field
WebLabel label = new WebLabel ( "Field" );
WebTextField field = new WebTextField ();
field.putClientProperty ( GroupPanel.FILL_CELL, true );
webComponentPanel.addElement ( new GroupPanel ( 10, label, field ) );
// Adding a simple slider
WebSlider slider = new WebSlider ( WebSlider.HORIZONTAL, 0, 100, 50 );
webComponentPanel.addElement ( slider );
// Adding a panel with textfields
WebTextField f1 = new WebTextField ();
WebTextField f2 = new WebTextField ();
WebTextField f3 = new WebTextField ();
webComponentPanel.addElement ( new GridPanel ( 10, f1, f2, f3 ) );
return new GroupPanel ( webComponentPanel );
}