Label llang = new Label("Language statistics");
Label lfrom = new Label("From");
DatePicker dpfrom = new DatePicker();
Label lto = new Label("To");
DatePicker dpto = new DatePicker();
GridPane gp = new GridPane();
gp.setVgap(10);
gp.setHgap(10);
gp.add(lfrom, 0, 0);
gp.add(dpfrom, 1, 0);
gp.add(lto, 0, 1);
gp.add(dpto, 1, 1);
Button btngenerate1 = new Button("Generate report");
btngenerate1.setOnAction(new LanguageStatEventHandler(connect));
Label lcountry = new Label("Country statistics");
Label lfrom1 = new Label("From");
DatePicker dpfrom1 = new DatePicker();
Label lto1 = new Label("To");
DatePicker dpto1 = new DatePicker();
GridPane gp1 = new GridPane();
gp1.setVgap(10);
gp1.setHgap(10);
gp1.add(lfrom1, 0, 0);
gp1.add(dpfrom1, 1, 0);
gp1.add(lto1, 0, 1);
gp1.add(dpto1, 1, 1);
Button btngenerate2 = new Button("Generate report");
btngenerate2.setOnAction(new CountryStatEventHandler(connect));
box.getChildren().addAll(lbusy, btngenerate, llang, gp, btngenerate1,
lcountry, gp1, btngenerate2);