private void createMainGrid() {
Div div = new Div();
div.setParent(this.bl_center);
final Hr hr = new Hr();
hr.setParent(div);
/*
* Borderlayout around the grid for make it scrollable to see all table
* records if the browser window are to small.
*/
final Borderlayout bl = new Borderlayout();
bl.setParent(div);
final Center ct = new Center();
ct.setAutoscroll(true);
ct.setStyle("background-color: #EBEBEB");
ct.setBorder("none");
ct.setFlex(true);
ct.setParent(bl);
final Div divCt = new Div();
divCt.setParent(ct);
this.tableLayout = new Tablelayout();
this.tableLayout.setColumns(3);
this.tableLayout.setParent(divCt);
this.tableChildrenRecords = new Tablechildren();
this.tableChildrenRecords.setRowspan(1);
this.tableChildrenRecords.setWidth("600px");
this.tableChildrenRecords.setStyle("padding-left: 5px;");
this.tableChildrenRecords.setParent(this.tableLayout);
this.tableChildrenStatistic = new Tablechildren();
this.tableChildrenStatistic.setRowspan(1);
this.tableChildrenStatistic.setWidth("450px");
this.tableChildrenStatistic.setStyle("padding-left: 5px;");
this.tableChildrenStatistic.setParent(this.tableLayout);
this.tableChildrenButtons = new Tablechildren();
this.tableChildrenButtons.setRowspan(1);
this.tableChildrenButtons.setWidth("240px");
this.tableChildrenButtons.setStyle("padding-left: 5px;");
this.tableChildrenButtons.setParent(this.tableLayout);
final Panel pb = new Panel();
pb.setWidth("240px");
pb.setBorder("none");
pb.setStyle("align:left; color:red");
pb.setParent(this.tableChildrenButtons);
this.panelChildren_Buttons = new Panelchildren();
this.panelChildren_Buttons.setParent(pb);
final Separator sep = new Separator();
sep.setParent(divCt);
final Separator sep2 = new Separator();
sep2.setParent(divCt);
final Div divFooter = new Div();
divFooter.setAlign("center");
divFooter.setParent(this.bl_south);
final Hr hr2 = new Hr();
hr2.setParent(divFooter);
final Label footerLabel = new Label();
footerLabel.setValue(" Help to prevent the global warming by writing cool software.");
footerLabel.setStyle("align:center; padding-top:0px; font-family:Verdana; font-size: 0.6em; ");
footerLabel.setParent(divFooter);